in reply to Re: Re: Re: Re: Getting identity after autoincr in FreeTDS/MSSQL/DBI
in thread Getting identity after autoincr in FreeTDS/MSSQL/DBI

Since you are using two commands off one prepare, you may need to
use the:

while ( $someVar = $sth->fetch ) { do ( something... ) while ( $sth->{syb_more_results} );

syntax.

This is explained in the "Programming the Perl DBI" book
PG: 326 Don't know if it helps - but it's worth a try.
  • Comment on Re: Re: Re: Re: Re: Getting identity after autoincr in FreeTDS/MSSQL/DBI
  • Download Code