Kris
05-29-02, 08:42
| I have a ms sql server running on and I need to test my perl script against it but I dont know how to establish the connection. I have read this page http://search.cpan.org/doc/TIMB/DBI-1.20/DBI.pm and tried to connect like this: #!/usr/bin/perl use DBI; use CGI; $q = new CGI; print "Content-type: text/html\n\n"; $data_source = "dbi:mSQL:database=name;host=xx.xx.xxx.xxx"; $username = "something"; $password = "somethingelse"; $dbh = DBI->connect($data_source, $username, $password); But I get nothing... I get a blank page with only the content-type inside it. What am I doing wrong? /Kris |