Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

sandygallant:

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 http://search.cpan.org/~timb/DBI-1.622/DBI.pm#Active, 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.

...roboticus

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000506]
help
Chatterbox?
[talexb]: Great quote from Re: (OT) Motivating the Unmotivated Programmer: "As Weinberg suggests, when a programmer becomes irreplaceable, it's time to replace him."
[jedikaiti]: SuicideJunkie++ #Apgrade is the highest point it will reach. They're informing you that it will all be downhill from here until the software hits a PEgrade, or impacts the terrain depending on the details of the orbit.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2017-07-25 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (377 votes). Check out past polls.