Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by mje (Curate)
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?
[stevieb]: use metamod::DateTime. Don't fsck around. Seriously. As someone who's done sensitive date/time stuff, don't roll your own. Use what is available and known stable. Do not guess.
[stevieb]: Date::Time even
[stevieb]: ffs I can't make DateTime link properly, so there.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2017-04-29 04:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.