Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?
[prathap keerthipati]: how to update perl in unix
[hippo]: yum update perl
[hippo]: Other package managers are available
LanX wouldn't update system Perl!
[Discipulus]: prathap keerthipati might be it is better to install an alternative Perl instead and do not touch the system one
[LanX]: see perlbrew for alternative Perl installations
[marto]: unless you know exactly what you're doing an often saner option is to simply build another Perl rather than replace the system one

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2017-03-23 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.