Hi,
I have an application that uses ADO & VBA to connect to SQL Server 2000
periodically like this:
Dim conn As ADODB.Connection
Set conn = New ADODB.Connection
conn.ConnectionTimeout = 1
conn.ConnectionString =
"Provider=SQLOLEDB;Server=MyServer;Database=MyData base;UID=MyUserID;PWD=MyPa
ssword"
conn.Open
When the server is unavailable, the Open waits 60 seconds before timing out.
During this time, the application is locked up because the VBA is not
reentrant. Doesn't the ConnectionTimeout property determined the connection
timeout? Where is the seconds coming from?
Please advise,
Tony Perovic
Compumation, Inc.