Hi,
I am upsizing an Access2000 application to use SQL Server 7. The application will still exist in Access2000, but the data tables will be stored in SQL Server 7.
The Access2000 application uses linked tables, and the startup code checks the links to these tables. To do this, it attempts to open each linked table by using a "Do While" loop ...
[tt]
Do While
Set rstTestTable = New ADODB.Recordset
rstTestTable.CursorLocation = adUseServer
'Open Table as recordset
rstTestTable.Open TName, _
Proj.Connection, adOpenStatic, adLockOptimistic
rstTestTable.Close
Loop
[/tt]
This code works when the tables are in SQL Server 7. However, I tested the scenario of the tables' links being checked when the server was not running. In this case, the rstTestTable.Open statement took around 20 seconds to time out. Given that there are many linked tables to check, this means that the application hangs for around 15 minutes!
Is there a quicker way to check that the linked tables are accessible?
thanks
Alex
I am upsizing an Access2000 application to use SQL Server 7. The application will still exist in Access2000, but the data tables will be stored in SQL Server 7.
The Access2000 application uses linked tables, and the startup code checks the links to these tables. To do this, it attempts to open each linked table by using a "Do While" loop ...
[tt]
Do While
Set rstTestTable = New ADODB.Recordset
rstTestTable.CursorLocation = adUseServer
'Open Table as recordset
rstTestTable.Open TName, _
Proj.Connection, adOpenStatic, adLockOptimistic
rstTestTable.Close
Loop
[/tt]
This code works when the tables are in SQL Server 7. However, I tested the scenario of the tables' links being checked when the server was not running. In this case, the rstTestTable.Open statement took around 20 seconds to time out. Given that there are many linked tables to check, this means that the application hangs for around 15 minutes!
Is there a quicker way to check that the linked tables are accessible?
thanks
Alex