Core component of SQL Server for storing, processing, and securing data
I think you first need to investigate how you can get better diagnostics. The delay can be due to many reasons:
- The SQL Server instance is not reached at all (not running, firewall blocking etc).
- The instance is reached, but login cannot be completed due to insufficient resources, for instance no worker threads available.
- The instance is reached login cannot be completed due to external reasons, for instance issues with contacting the AD in case of Windows authentication.
You should also try alternate means of connect from the same machine, for instance with SQLCMD (which also uses ODBC).