mecrazycoder has asked for the wisdom of the Perl Monks concerning the following question:
I am getting error as: Issuing rollback() for database handle being DESTROY'd without explicit disconnect().use warnings; use strict; use DBI; my $dsn="XYZ"; my $user="XXXX"; my $password="XXXX"; my $dbh=DBI->connect("dbi:ODBC:$dsn", $user, $password, { RaiseError => 1, AutoCommit => 0 }); my $query = "INSERT INTO temp (SNO, Name, Institute) VALUES (5,'Ram',' +IIT')"; my $query_handle = $dbh->prepare($query); $query_handle->execute();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error in my MS SQL script
by Corion (Patriarch) on Oct 05, 2009 at 10:24 UTC | |
by mecrazycoder (Sexton) on Oct 05, 2009 at 11:01 UTC | |
|
Re: Error in my MS SQL script
by marto (Cardinal) on Oct 05, 2009 at 10:29 UTC | |
|
Re: Error in my MS SQL script
by jakobi (Pilgrim) on Oct 05, 2009 at 10:25 UTC |