Does it still fail if you $sth->fetchrow() before you call $sth->finish()?
In reply to Re^3: My MSSQL query fails the second time. by moritz in thread My MSSQL query fails the second time. by kyle