Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: Setting CommandTimeout

by NetWallah (Canon)
on May 06, 2016 at 00:47 UTC ( [id://1162322]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Setting CommandTimeout
in thread Setting CommandTimeout

I think you are running into some weirdness of the CommandTimeout property, as described in msdn.

The CommandTimeout setting on a Connection object has no effect on the CommandTimeout setting on a Command object on the same Connection; that is, the Command object's CommandTimeout property does not inherit the value of the Connection object's CommandTimeout value.

I suggest you create a command object, assign the Connecttimeout to the command, then execute the SQL from there.
See this VBA discussion of the failure of CommandTiemout.

        This is not an optical illusion, it just looks like one.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1162322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-23 23:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found