Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi sir
I have an application which is developed in VC 6.0 and it have a stored procedure that i call with some parameter and display the data in an excel sheet.My data is come from SQL Server database.When I execute the stored procedure from database itself it execute fine but when I call the stored procedure from my MFC code then its shows time out error.I am using SQL Server2008 as database and VC6.0 to frontend code.Please give me some code example that I can set the timeout for executing the stored procedure.Please help..
Posted
Comments
Richard MacCutchan 20-Jan-14 5:07am    
You need to show your code and indicate the point at which the timeout occurs. Please use the Improve question link above, and add the details.
debarunb 20-Jan-14 23:37pm    
Hi sir I solved my problem by setting timeout of CDatabase class thanks for ur response...
debarunb 20-Jan-14 23:39pm    
SetQueryTimeout()of CDatabase class

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