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

Re: Perl Query Locks A MsSQL Database

by wink (Scribe)
on Jan 23, 2013 at 19:08 UTC ( #1014993=note: print w/ replies, xml ) Need Help??


in reply to Perl Query Locks A MsSQL Database

Agree with Corion, try reading everything into a large array first then parse through it.

Also, potentially a dumb question because I don't do a lot of DB work within Perl, but is there any reason you're executing your statement within an eval?


Comment on Re: Perl Query Locks A MsSQL Database
Re^2: Perl Query Locks A MsSQL Database
by vincent_veyron (Acolyte) on Jan 25, 2013 at 18:08 UTC

    "is there any reason you're executing your statement within an eval?"
    From perldoc -f eval : It is Perl's exception trapping mechanism; so you can trap errors and write eg :

    if ( $@ ) { if ( $@ =~ /foreign key/ ) { } else { }
    http://vincentveyron.com Logiciels de gestion des contentieux juridiques et des sinistres d'assurance

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014993]
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-12-20 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (94 votes), past polls