> use DBI;
> my $msdbh = DBI->connect("dbi:ODBC:EasyArchiv", "user", 
> "pass", { RaiseError => 1, PrintError => 1, AutoCommit => 1 } 
> ) or die $DBI::errstr; $mssth = $msdbh->prepare("USE REFDB") 
> ; $mssth->execute; print "$DBI::errstr\n";
> 
> my $db2dbh = DBI->connect("dbi:ODBC:DB2J21", "user", "pass", 
> { RaiseError => 1, PrintError => 1, AutoCommit => 1} ) or die 
> $DBI::errstr; print "$DBI::errstr\n"; $msdbh->disconnect; 
> $db2dbh->disconnect;
> ---------------------------------------------
> 
> As soon as I run this, perl.exe crashes. When I remove either 
> the MSSQL
> (EasyArchiv) or the DB2 part, it works. Am I not allowed to 
> have to connects running?
> 
> Lars
> 

What version of DBD::ODBC are you running?
What Platform are you running on?
What version of Perl are you running?
What's the actual error/crash a memory reference?

I am going to guess: Win32, ActiveState Perl 5.6.x (build 6xx) and
DBD::ODBC 0.28. 

If so, run to the DBI FAQ and install my latest version.  0.28 is what
ActiveState has, which is nearly a year out of date.

Regards,

Jeff

DBI FAQ (www.xmlproj.com/cgi/fom.cgi)



Reply via email to