Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADP Timeout Expired running Stored Procedure

Status
Not open for further replies.

projnet

IS-IT--Management
May 7, 2001
1
AU
I have a number of stored procedures on a SQL database. Most of these queries run OK, but two that I created today fail with a "Timeout Expired" message when run from within Access (2000). The same queries run fine using Query Analyser in SQL Enterprise tools. Others created today work fine in Access. I can't see a pattern in which queries work and which fail. I have checked the Connect Timeout setting in MS-Access

All queries were created in SQL Query Analyser.

Anyone else ever seen this?

 
How are you running the SP's from Access? Bound Form? ADO Command? How long does it take the queries that timeout to run in query analyzer?
 
hi

add this line to your code

Code:
cmd.CommandTimeout = 0

it will set the timeout to infinite, or you can set it to another value. see help

regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top