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

Priya LingeRank #785 · 2.9K reputationPosted Sep 7, 2011, 11:32 PM EDT
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.
srinivas P127 reputationPosted Sep 8, 2011, 1:12 AM EDT
Vilas GiteRank #951 · 2.1K reputationPosted Sep 8, 2011, 3:21 AM EDT
Hi Srinivas!
Set commandtimeout to upper value..
Thanks!
-----------------------------------------------------------------------
If this reply helps your post…then check "This is correct answer"
Sam HobbsRank #107 · 20.5K reputationPosted Sep 8, 2011, 9:27 PM EDT
srinivas P127 reputationPosted Sep 11, 2011, 8:53 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Sep 11, 2011, 10:33 PM EDT
Nageswararao Dhulipalla74 reputationPosted Sep 11, 2011, 11:08 PM EDT
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.