PDA

View Full Version : DBI on Windows 2000 / NT


ramshree
01-27-03, 20:27
Hi,

I am new to Perl and DBI too, I installed Perl 5.8 on my PC , SQL Server 2000 is it possible to installed DBI on Windows and use in Perl to connect to SQL Server ?

Please please help. Like to learn Perl programming using - DBI . amy help URL info will also help.

Thanks,
Ram

Bernd Dulfer
01-28-03, 02:50
I am new to Perl and DBI too, I installed Perl 5.8 on my PC , SQL Server 2000 is it possible to installed DBI on Windows and use in Perl to connect to SQL Server ?

I assume you mean MS SQL Server?

Yes it is possible.
But you need a C compiler.

As far as I know, it is not possible to access SQL Server with the Sybase client libraries (once it was, that changed with version 7.0).
So you have to use FreeTDS, a free implementation of the TDS protocol, used to talk to SQL Server.
Get it at www.freetds.org.

You may get DBI from activestate (www.activestate.com) for version 5.8.
If not, go to CPAN and search for DBI (search.cpan.org).

You also need DBD::Sybase, and that's not on activestate at the moment. So you have to compile this on your own.
Go to Michael Pepplers site for this: www.mbay.net/~mpeppler/

senza_nome
07-05-04, 23:22
OTOH,

You used to be able to use ODBC to connect to MS-SQL Server. I think it works on MS-SQL Server 2K.

Try configuring ODBC to connect to one of your MS-SQL Server databases. If that works, use PPM and install DBD::ODBC.

HTH

Pat Phelan
07-06-04, 09:22
I use the Win32::ODBC interface all of the time. The DBD::ODBC interface works nicely too, but it isn't "blessed" for production use in our shop.

-PatP

senza_nome
07-06-04, 11:55
I know of a "shop" like that :o --- they would rather be unable to solve the problem than use a method that hasn't been "blessed!" :eek:

Pat Phelan
07-06-04, 11:59
You gotta love that... Or at least it helps if you can pretend like you do.

-PatP