Groups | Blog | Home
all groups > vb.net > february 2007 >

vb.net : Exception: Timeout expired


Dean Slindee
2/16/2007 10:42:10 PM
"The timeout period elapsed prior to completion of the operation or the
server is not responding".
ExceptionType: System.Data.SqlClient.SqlException
Method: OnError

I am getting the above error message when calling a long running stored
procedure from a VS2005 WinForm application. Using Windows 2000 OS with SQL
Server 2000, ADO.NET, Framework 2.0. The stored procedure just takes some
time to build a lot of tables in SQL Server. To be a little more precise,
the one stored procedure calls four more stored procedures (doubt it
matters, but just in case...)

So, my question is this: is there a setting in VS2005 or SQL Server that I
can turn off or extend so that this timeout is disabled?

Thanks in advance.
Dean Slindee

Stephany Young
2/17/2007 12:00:00 AM
Set the CommandTimeOut property of the SqlCommand object to whatever you
need.


[quoted text, click to view]
Michel Posseth [MCP]
2/17/2007 1:53:59 PM
The standard time out is 20 seconds , so you need to high up the command
time out to the required value

regards

Michel


"Dean Slindee" <slindee@charter.net> schreef in bericht
news:CMvBh.178$vg7.100@newsfe05.lga...
[quoted text, click to view]

AddThis Social Bookmark Button