Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Can i execute two queries connecting to same DB at a time.

by mje (Deacon)
on May 11, 2009 at 13:05 UTC ( #763232=note: print w/ replies, xml ) Need Help??


in reply to Can i execute two queries connecting to same DB at a time.

Issuing 2 selects on the same connection without reading all the result-set is deemed to be having "multiple active connections".

DBD::ODBC does support multiple active statements.

Microsoft SQL Server did not used to support multiple active statements. There were tricks you could play that allowed you to use multiple active statements but they came at a cost. Read the DBD::ODBC pod which explains some of these tricks and why they could cause you problems.

If you have a newer SQL Server you can add "MARS_Connection=Yes" to your connection string and you will get multiple active statements. Here again, read the DBD::ODBC pod and FAQs.


Comment on Re: Can i execute two queries connecting to same DB at a time.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://763232]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-08-20 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (111 votes), past polls