Reconnecting after ODBC timeout

L

Larry

I have an Access 2003 database that has linked tables in a SQL Server 2000
database. My problem is that when the ODBC connection to the SQL Server
database times out, I have to exit Access and start the Access database back
up to reconnect to the ODBC data source. Is there a way that I can
programmatically reconnect to the ODBC data source without having to exit and
start over?

Thanks,
Larry
 
D

darkknight56

I have an Access 2003 database that has linked tables in a SQL Server 2000
database. My problem is that when theODBCconnection to the SQL Server
database times out, I have to exit Access and start the Access database back
up to reconnect to theODBCdata source. Is there a way that I can
programmatically reconnect to theODBCdata source without having to exit and
start over?

Thanks,
Larry

Try the SQL_ATTR_QUERY_TIMEOUT ODBC variable.

Patrick Reynolds
 
B

Brent Spaulding \(datAdrenaline\)

Maybe you can just bind a hidden form to a small backend table, possibly
even a dummy table of sorts. I have never had the problem you've
experienced, and I practice the suggestion I have given you.

HTH! ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top