Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem of "timeout Expired" when trying to execute a stored procedure

Status
Not open for further replies.

snr

Programmer
Oct 8, 2001
78
0
0
US
Hi,
I am trying to execute a stored procedure through VB application. If I run the stored procedure through Query Analyser , it takes around 1 min to complete.
As I was getting this error, I tried writing
con.ConnectionTimeout = 0
con.CommandTimeout = 0
But still its giving the same error.
Please help.

Thanks
 
I don't know what you are using to connect but if you are using ADO 2.5 or earlier you may want to look at Article Q175264 on MSDN If you choose to battle wits with the witless be prepared to lose.
[machinegun][hammer]

[cheers]
 
Try using SQL's query profiler or check the active processes in enterprise manager - it may give you some clue...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top