I am using vbscript to call a stored procedure in SQL Server and get an error "Timeout Expired" "80040E31". When the SP is run in QueryAnalyzer, it runs fine.
Googling that ran me into suggestions for:
wscript.timeout = 0
which got me an error message saying that there was no such object.
Also, a google of "wscript.timeout" indicated that unless a timeout is set, it will run forever; the timeout is only to prevent it from running forever.
Another suggestion at the microsoft website offered:
conn.CommandTimeout = 0.
That didn't blow up, but it also didn't seem to do anything (I still got the timeout in 30 seconds)
I tried setting it for 7200, (2hours) but that also timed out at 30 second mark.
How can I make this thing to run until done?
Googling that ran me into suggestions for:
wscript.timeout = 0
which got me an error message saying that there was no such object.
Also, a google of "wscript.timeout" indicated that unless a timeout is set, it will run forever; the timeout is only to prevent it from running forever.
Another suggestion at the microsoft website offered:
conn.CommandTimeout = 0.
That didn't blow up, but it also didn't seem to do anything (I still got the timeout in 30 seconds)
I tried setting it for 7200, (2hours) but that also timed out at 30 second mark.
How can I make this thing to run until done?