Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: DBLib error driving me crazy

by roboticus (Chancellor)
on Oct 23, 2012 at 17:59 UTC ( #1000506=note: print w/replies, xml ) Need Help??

in reply to DBLib error driving me crazy


I know that SQL server can return multiple datasets. Is it possible that one of your proces is returning an additional dataset that you're not reading? You could check that by preceding the failing statement with a fetch loop, printing out any data you find.

In any case, you might want to read the docs on the Active method to test whether the the statement handle is still active and finish to terminate the statement if so.

Caveat: I've not tried this in the last few years, so my recollections could be a bit fuzzy.

Update: Fixed links to cpan. (I used, but I don't know if that's the best way to do it. I didn't get anything useful when I tried cpan://DBI#Active.


When your only tool is a hammer, all problems look like your thumb.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000506]
[Corion]: WTF? There is a dev release of Danga::Socket?! I thought that module died a long time ago?! According to its changes, the last release was in 2008 ;)
[Corion]: (and Brad Fitzpatrick long since moved on to Go ;) )
[Corion]: But who am I to worry about necrocpan - I'm revisiting my online banking module, and also I'll somewhat revive WWW::Mechanize:: Firefox, at least if the test suite passes under the Waterfox browser ...
[Corion]: Maybe I should look through my CPAN releases and revisit them in order of last release and think about what to do with the modules :)
[marto]: this cpan day there should be a call to remove old crud :P
[marto]: as well as encourage active development

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2018-07-17 08:20 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (359 votes). Check out past polls.