question

eDyulgerov avatar image
eDyulgerov asked

Optimal connection timeout for remote connections

Hi, I am developing an installer with WPF, that needs to validate an SQL connection string, that may contain either a local SQL Server instance or a remote SQL Server instance. So far we are using the default timeout of 15 seconds, but the user may not want to wait that long, so what is the least amount of time a connection to a remote server can be made? Thanks.
sql-server-2014connectionc#installer
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Wimbush avatar image
David Wimbush answered
I wouldn't worry about it. Better to allow *up to* 15 seconds wait than use a short timeout and have lots of false positive install fails.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.