Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 rifling through the Monastery: (6)
As of 2014-11-27 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (179 votes), past polls