in reply to DBI-disconnect ???
where you actually invoke the connect method in DBI, the disconnect method is part of your database object. You would want to do something more like this:my $database = DBI->connect("DBI:" . $info{DBMS} . ":" . $info{DSN}, 'sa','') or die "Could not connect to database: " . DBI->errstr;
Hope this helps!$database->disconnect();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI-disconnect ???
by christopherbarsuk (Acolyte) on Aug 12, 2001 at 02:41 UTC |