Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have written a stored procedure which is executing from a c# windows from application. I am connecting to the server using an entity data model.

The problem is my stored procedure takes more than 4 minutes to execute and complete its process

BUT whenever I am executing it gives error

C#
Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.


As I searched this is due to remote transaction time out because I am executing it from my c# code because when i am executing it from server it always complete with no error

PLS HELP ME..
Posted
Comments
Rakshith Kumar 10-Oct-13 1:33am    
Can you share your code? Without it it would be tough to tell

1 solution

You should set you Connect Timeout in the connection string of c# code. To know more about connection string :

http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring(v=vs.110).aspx[^]
 
Share this answer
 

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