Microsoft SQL Server Native Client 10.0 Login timeout expired

前端 未结 6 1107
时光说笑
时光说笑 2021-01-13 01:37

I have a freshly installed SQL Server 2008 R2 Express. I\'m trying to run SQLCMD locally (please do take note locally) but I am receiving the e

6条回答
  •  生来不讨喜
    2021-01-13 01:59

    This seems to happen too when the server or the instance can't be found.

    It will eventually close with the reason (the first part of the error may be what misguided you):

    Sqlcmd: Error: ... : Login timeout expired.

    Sqlcmd: Error: ... : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections.

    So:

    • Check the server name is correct;
    • Check the instance name is correct (and if you didn't mean to use the default instance, try remove the instance name completely);
    • Check if the server can be reached using ping, etc.

提交回复
热议问题