Using Perl under Linux to connect SQLServer2000 via UNIXODBC

Source: Internet
Author: User
Tags odbc

Absrtact: Ms never provides SQL Server for Linux, so don't try to install SQL Server on a Linux system, but you can connect to the SQL Server database of Windows systems via ODBC;

A description of the test environment and Linux connection SQL Server;

Test environment:

GCC 3.3.3, kernel 2.6.5-1, glibc 2.3.3-27, Perl 5.8.3

About SQL Server instructions:

MS has never provided SQL Server for Linux, so don't try to install SQL Server on a Linux system, but you can connect to the SQL Server database of Windows systems via ODBC;

Windows Server 2003 user attention:

SQL Server installed on the Windows Server 2003 system does not open port 1433, so please Windows2003 users must install SQL Server SP3 Pudding after installing SQL Server

Download related software unixodbc, FreeTDS and DBD-ODBC

First you need to download 3 files:

ODBC for Linux Systems

Unixodbc-2.2.8.tar.gz (http://www.unixodbc.org)

Connect to SQL Server or Sybase driver

Freetds-0.62.4.tar.gz (http://www.freetds.org)

Perl's ODBC module

Dbd-odbc-1.12.tar.gz (http://cpan.perl.org)

Put the downloaded three files into the same directory

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.