When I try to run sqlcmd (from the cmd prompt), I get the following error:
HResult 0x2, Level 16, State 1 Named Pipes Provider: Failed to open a connection to SQL Server [2]. Sqlcmd: error: Microsoft SQL Server 10.0 native client: connected to the network or an error occurred while establishing a connection to SQL Server, the server was not found or is unavailable. Verify that the instance name is correct and I'm configured with SQL Server for a remote connection. For more information, see SQL Server Books Online. Sqlcmd: Error: Microsoft SQL Server Native Client 10.0: Login timed out.
Not sure why this is happening? I can connect to the sql server from my asp.net website (which runs locally, such as a database), but sqlcmd cannot connect.
sql-server sqlcmd
tweetypi
source share