all groups > sql server connect > june 2004 >
You're in the

sql server connect

group:

ConnectionTimeout


ConnectionTimeout Vlad
6/25/2004 2:13:24 PM
sql server connect:
I'm creating connection object to SQL Server db this way
Set objConn = New ADODB.Connection
objConn.CursorLocation = adUseClient
objConn.ConnectionString =
"PROVIDER=MSDASQL;dsn=Coordinator;uid=vladc;pwd=developer4444;database=SRS;"
objConn.ConnectionTimeout = 1
objConn.Open

It doesn't matter what value I'm setting to the ConnectionTimeout property.
If server is unavailable then it produces an error only after approximately
30 seconds. I read in MSDN than default ConnectionTimeout is 15 seconds. If
I comment assignment line in my code, it's still about 30 seconds.
So, for me ConnectionTimeout property doesn't work.
What am I doing wrong?
Thank you
Vlad

Re: ConnectionTimeout Victor Koch
6/25/2004 5:32:37 PM
objConn.ConnectionTimeout = 30

--
Víctor Koch From Argentina.


"Vlad" <vovan.c@verizon.net> escribió en el mensaje
news:O$JZcAuWEHA.3664@TK2MSFTNGP12.phx.gbl...
[quoted text, click to view]

Re: ConnectionTimeout Jeff Johnson [MVP: VB]
6/28/2004 1:20:30 PM

[quoted text, click to view]

Why use ODBC to connect to SQL Server? Why not use the native SQL OLE DB
provider?

AddThis Social Bookmark Button