Jan: Fehlermeldung bei Ausführug eines Perlskriptes

Beitrag lesen

Hallo,

folgendes Perlskript, welches in eine SQl 2000 -Datenbank per ODBC Daten schreiben soll, gibt, wenn ich es im Explorer ausführe folgende Fehlermeldung aus !!
Perlskript:

#!D:\Perl\bin

use DBI;
use CGI;

my $dsn = "DBI:ODBC:sqltest";
my $dbh = DBI->connect($dsn);
$dbh->do("INSERT INTO sqltest (Name, Nummer) VALUES ('name', 1234)");

print "Content-type: text/html\n\n";
print "<HTML>\n";

print "<BODY BGCOLOR=#FFFFFF>\n";
print "<CENTER>\n";

print "\n";

print "</CENTER>\n";
print "</BODY></HTML>";

Fehlermeldung im Explorer:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Es muss an der Syntax folgender Zeile liegen:

$dbh->do("INSERT INTO sqltest (Name, Nummer) VALUES ('name', 1234)");

Weiss jemand Rat??

MFG

Jan