blackadder has asked for the wisdom of the Perl Monks concerning the following question:
All works well untill I actually try to delete the constraint! Perl throughs this errormy $sth = $dbh->prepare("SELECT constraint_name FROM information_s +chema.constraint_column_usage WHERE TABLE_NAME = '$tbl'"); $sth->execute; my $temp = $sth->fetchrow_arrayref; foreach my $rel (@$temp) { next unless ($rel =~ /ID/); print "Relationship: $rel\n"; my $th = $dbh->prepare("ALTER TABLE Data_CentersTEST DROP CONS +TRAINT $rel"); $th->execute; }
searched google but couldn't find anything definite! Can someone shine a light on this please?DBD::ODBC::st execute failed: [Microsoft][ODBC SQL Server Driver]Conne +ction is busy with results for another hstmt (SQL-HY000) at U:\Doccuments\Scripts\Test\sql_do3.pl line 78.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD::ODBC::st execute failed: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt
by roboticus (Chancellor) on Nov 11, 2009 at 12:07 UTC | |
by blackadder (Hermit) on Nov 11, 2009 at 14:34 UTC | |
|
Re: DBD::ODBC::st execute failed: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt
by mje (Curate) on Nov 12, 2009 at 09:17 UTC |