sqlcmd error

I

Icon Iconoclast

Each time I try to run sqlcmd, this is the error message I get:

HResult 0*2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Server Native Client 10.0: A network related
or instance-specific error has occurred while established 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. For
more information see SQL Server Books Online.
Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : Login timeout
expired.


I'm using SQL Server 2008 Express Edition. I can use user instances without
any problem. Why am I getting the above error? What's the remedy?
 
G

Gregory A. Beamer

One thing that often solves the problem is turning on SQL Browser. Without
this, it will not allow remote connections.

--
Gregory A. Beamer
MVP: MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think Outside the Box! |
********************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top