I have opened the first connection and run a 'fetchrow_array'. When I used Perl on a UNIX/Oracle system I was able to link to other tables. I am now working on a Windows/SQL system and when I run this code (without the # at the start of the line),
I get an error,
DBD::ODBC::st execute failed: [Microsoft][SQL Server Native Client 10.0]Connecti
on is busy with results for another command (SQL-HY000) at hevnInter2_pl line 11
3.
Couldn't execute 2: [Microsoft][SQL Server Native Client 10.0]Connection is busy
with results for another command (SQL-HY000) at hevnInter2_pl line 113.
Perl:
# $st2 = $dbh->prepare("SELECT BIRTHDATE FROM PAEMPLOYEE WHERE
# employee = '" . $vEmp . "'") or die "select 2: " . $dbh->errstr;
# my @dat2;
line 113 -
# my $r2 = $st2->execute or die "Couldn't execute 2: " . $st2->errstr;
# while (@dat2 = $st2->fetchrow_array())
# {
# my $vDOB = $dat2[0];
# }
I get an error,
DBD::ODBC::st execute failed: [Microsoft][SQL Server Native Client 10.0]Connecti
on is busy with results for another command (SQL-HY000) at hevnInter2_pl line 11
3.
Couldn't execute 2: [Microsoft][SQL Server Native Client 10.0]Connection is busy
with results for another command (SQL-HY000) at hevnInter2_pl line 113.