MS SQL 2000

B

Ben Morrow

Does anyone know how to connect to an MS SQL 2000 db from
Perl?

I have had success (under linux) with DBI and DBD::Sybase. From Windows
I guess you can use DBD::ODBC.

Ben
 
J

Jim

my $dbhandle = DBI->connect(
"DBI:ADO:DRIVER={SQL Server};SERVER=$servername;DATABASE=$dbname",
$uid, $pwd,{ RaiseError => [1],
PrintError => [1],
AutoCommit => [1])
) || die "Db connection not made: $DBI::errstr";
 
J

Jim

Oh yeah,

use DBI;
use DBI qw:)sql_types);

my $dbhandle = DBI->connect(
"DBI:ADO:DRIVER={SQL Server};SERVER=$servername;DATABASE=$dbname",
$uid, $pwd,{ RaiseError => [1],
PrintError => [1],
AutoCommit => [1])
) || die "Db connection not made: $DBI::errstr";


Does anyone know how to connect to an MS SQL 2000 db from Perl?

thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top