Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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?

Replies are listed 'Best First'.
Re^2: Perl Query Locks A MsSQL Database
by vincent_veyron (Sexton) 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 { } Logiciels de gestion des contentieux juridiques et des sinistres d'assurance

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014993]
LanX explains much cargo bla ...
[Eily]: what? I thought PHP was known for its reliable and consistent behaviour and documentation!
[LanX]: ... and a lot of pseudo Perl experts
[Eily]: though honestly, I'm sure I have seen people use closure to mean anonysub for perl as well
[stonecolddevin]: good morning friends
[LanX]: yes, mainly pseudo Perl experts
[Eily]: good morning stonecolddevin
LanX has to go/
[Eily]: bye LanX

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2018-02-23 17:15 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (305 votes). Check out past polls.