16

Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : Unable to complete login process due to delay in opening server connection.

When I execute the first query in SQL Server 2008 R2 there was no problems but when I executed the second query there is problem shown above. My database is connected to the local PC and there is no remote connection.

Can anyone help me for finding the above remedy?

David Rogers
  • 2,601
  • 4
  • 39
  • 84
Philip
  • 389
  • 2
  • 5
  • 13

3 Answers3

4
  • Raise your timeouts (connection and command)
  • Give the sql server more memory
  • Stop any heavy background processes
  • Play with netlibs, turn off shared memory and tcpip+netbios turn on and vice versa
David Rogers
  • 2,601
  • 4
  • 39
  • 84
Oleg Dok
  • 21,109
  • 4
  • 45
  • 54
3

Disabling the shared memory worked like a charm for me.

Instructions:

  1. Start SQL Server Configuration Manager.
  2. In SQL Server Configuration Manager, expand SQL Server Network Configuration, and then click Protocols for MSSQLSERVER.
  3. Right-click Shared Memory, and then click Disable.
  4. Click SQL Server Services, right-click SQL Server (MSSQLSERVER), and then click restart.
Kondar
  • 31
  • 2
3

My office switched to a MultiSubnetFailover (load-balanced) system for our SQL set-up. Our connection manager previously had been set to OLEDB, and as it turns out OLEDB cannot accommodate MultiSubnetFailover=True; that's why we were getting the above error message.

As a result, we switched to an ODBC connection manager instead, and that worked.

codeMonkey
  • 4,134
  • 2
  • 31
  • 50