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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connection timing out?

Status
Not open for further replies.

nowayout

Programmer
Feb 25, 2003
364
US
Why would my application connection to database server is timing!! is there a reason!! i am trying to figure out but not able to figuring out so asking here.

thanks
 
If this is an Access application using linked tables, the connection will fail/timeout if a running stored procedure or pass-thru query encounters a nonfata SQL server error.
 
the application build in C++ and database is on sql2000? but somehow it is timing out!! don't know why? what could it be
 
there error they see on the screen is

CADODatabase Error

Code = 80020e31
code meaing = IDispatch error # 3121
Source = Microsoft OLE DB Provider for ODBC Drivers
Description = [Microsoft][ODBC SQL Server Driver] Timeout expired.
 
Doesn't matter really if it's C or Access - are you running a stored proc or query from it?
 
both but mostly query. and sometimes stored proc.
 
Run both in enterprise manager query analyzer. If it throws any nonfatal errors that is probably the trouble.
Hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top