Click here to Skip to main content
15,913,941 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
In my project Excel Importing takes more time before Importing the Execution TimeOut.So I want to increase the Execution Timeout
Posted
Updated 26-Apr-13 0:48am
v8
Comments
CHill60 26-Apr-13 6:31am    
Unfortunately we can't see your code so we can't suggest ways of improving the execution time. Use the Improve question link to post the code that you are using
CHill60 26-Apr-13 6:46am    
Two of us have tried to improve your question by changing the word "increase" to "improve" and you keep changing it back. You really do NOT want to increase the Execution Time - you may however want to increase the Execution TimeOUT. Be clear on what you are asking, and post the code that is causing you the problem
Raavis 26-Apr-13 6:54am    
Did you want to increase the timeout limit ? i.e. from 59.99 Seconds to 2 ~ 3 min ?
KM Perumal 26-Apr-13 6:56am    
Post ur code its solve ur problem
ZurdoDev 26-Apr-13 7:28am    
What timeout? Http, SQL, etc?

1 solution

If you want to change the timeout for how long a single command can take to complete , you need to change the command timeout..like this..

dbCommand.CommandTimeout = somevalue


http://msdn.microsoft.com/en-CA/library/system.data.sqlclient.sqlcommand.commandtimeout.aspx[^]
 
Share this answer
 
Comments
Saranya Boopathi 27-Apr-13 1:13am    
Thanks I got it
[no name] 29-Apr-13 9:35am    
you're welcome dear.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900