Hi monks,
I'm having trouble connecting to SQL Server (error message listed below) and my searches haven't found a scenario similar to mine. I've both DBI and DBD-ODBC installed, I ended up installing them via the CPAN shell, I've a feeling I need to redo the installs. If so, do I delete the files in C:\Perl\cpan\build ? Or what are the steps to get rid of any files/modules associated with these installs and start from scratch? Can you give me guidance on this problem? Thanks very much.
Troubleshooting:
* I'm able to connect via ADO.
* I've added various 'use lib' lines (to no avail) such as:
use lib "C:/Perl/cpan/build/";
Error Message:
Can't locate auto/DBI/connection.al in @INC(@INC contains: C:/Perl/site/lib/ C:/Perl/site/lib C:/Perl/lib .) at testscript.pl line 40
Other notes:
* I'm new to Perl
* I'm running ActivePerl on WinXP
* my script follows:
use DBI;
my $dbh = DBI -> connection("DBI:ODBC:xxxxxxx");
die "connect prob: " . DBI -> errstr() unless $dbh;
print "db connected";
$dbh -> discconnect();