I am working on windows applications
when i am running the application ,getting following error when loading the dataset
"Timeout expired. The timeout period elapsed prior to completion of the operation or the
server is not responding."
Help me urgent,what is the problem
Best Regards
srinivas
Nageswararao DhulipallaPosted Sep 12, 2011, 3:08 AM
If you talk about retrieving the data from database to bind to dataset, in this case if you get connection timeout error, then set the commandtimeout to zero(0) to the command object.
Sam HobbsPosted Sep 12, 2011, 2:33 AM
srinivas PPosted Sep 12, 2011, 12:53 AM
Sam HobbsPosted Sep 9, 2011, 1:27 AM
Vilas GitePosted Sep 8, 2011, 7:21 AM
Hi Srinivas!
Set commandtimeout to upper value..
Thanks!
-----------------------------------------------------------------------
If this reply helps your post…then check "This is correct answer"
srinivas PPosted Sep 8, 2011, 5:12 AM
Priya LingePosted Sep 8, 2011, 3:32 AM
Please check this,
the Error occurs when the execution time beyond Timeout Property.
When you are trying to connect or access to a Database table which
is having large volume of data, query execution time will be more.
There are two main Timeout property in ADO.NET.
1. Connection Timeout for Connection. It could be solved by setting ConnectionTimeout property
of Connection object in Connection String.
2. Timeout for Data access ( Command Object ). You can set CommandTimeout property to Command object
myConnection.ConnectionString = "Persist Security Info=False;Integrated Security=SSPI;database=northwind;server=mySQLServer;Connect Timeout=30";
http://social.msdn.microsoft.com/Forums/en/vblanguage/thread/57dc992f-fcc4-4b17-8187-a9002c4bc28c
Hope this will help you.
Thanks.