Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl and MS SQL Server 1

Status
Not open for further replies.

JaySang

Technical User
Jun 26, 2003
43
CA
I need some beginner help on using perl to connect to an SQL Server 2000.

Versions
Perl v5.8.0
DBI v1.45
MS Sql Server 2000

I just installed the DBI but when i try and connect using use DBI;
use DBD::ODBC;

I get an error "Can't locate DBD/ODBC.pm in @INC"

Which leads me to believe that DBD::ODBC is not installed but when I try and download activestate DBD-ODBC i get and error. I tracked the error to incompable versions of perl. But i cannot find a DBD::ODBC for perl 5.8

Any suggestions ? Any problems with my assumptions above ?
 
Install DBD-ODBC through ppm instead of cpan. It will download and install the proper package for your version of perl.

From a prompt.

c:\>ppm install DBD-ODBC
 
I don't have internet access on the computer with perl on it. Its on a private closed network.
 
Download and install the files on a computer that has internet access. Copy the entire C:\Perl directory to a disk and move it to the same location on the computer that needs to have it installed.

Raklet
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top