peacemaker1820 has asked for the wisdom of the Perl Monks concerning the following question:
print "HTTP/1.0 200 OK\n";
print "Content-Type: text/html\n\n";
print "<HTML><HEAD><TITLE></TITLE></HEAD>\n";
print "<BODY>\n";
use DBI;
use DBD::ODBC;
use CGI;
my ( $server_name, $database, $user_id, $password ) = qw( 'sdp-si.biz' 'SDPSI' 'myusername' 'mypassowrd' );
#Connect the database handle.
$dbh = DBI->connect("DBI:ODBC:$DSN") or die "$DBI::errstr\n";
#Close connection when finished:
$dbh->disconnect;
print "</BODY>\n";
print "</HTML>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ODBC and MS SQL Server 2000 Connection
by dws (Chancellor) on Jun 28, 2002 at 20:23 UTC | |
by Moonie (Friar) on Jun 28, 2002 at 20:30 UTC | |
|
Re: ODBC and MS SQL Server 2000 Connection
by thunders (Priest) on Jun 28, 2002 at 20:47 UTC | |
|
Re: ODBC and MS SQL Server 2000 Connection
by peacemaker1820 (Pilgrim) on Jun 28, 2002 at 21:10 UTC |