Question on TMSConnection.ConnectionTimeout
Posted: Tue 09 May 2017 10:24
I would like to know as soon as possible when a Connection fails.
I tried to set TMSConnection.ConnectionTimeout to a low number of seconds for this.
In case of a sql authentication there are 4 parameters: user, password, server and database.
I noticed that if user, password or database are wrong the TMSConnection raises an exception immediately, independently from the value of ConnectionTimeout, while if the server is wrong the exception comes about after the number of seconds specified in ConnectionTimeout.
Somehow the server property "takes longer", why?
Thanks.
I have latest sdac.
I tried to set TMSConnection.ConnectionTimeout to a low number of seconds for this.
In case of a sql authentication there are 4 parameters: user, password, server and database.
I noticed that if user, password or database are wrong the TMSConnection raises an exception immediately, independently from the value of ConnectionTimeout, while if the server is wrong the exception comes about after the number of seconds specified in ConnectionTimeout.
Somehow the server property "takes longer", why?
Thanks.
I have latest sdac.