Sql server start as single user mode

  • I started sql server instance using single user mode by changing start up parameters in sql server configuration manager.Then when i try to connect to sql server in command line using "sqlcmd -s pcname\instancename" i get following error. So how to solve this?

    HResult 0x2, 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 in stance-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 i f 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.

  • By default SQL Server 2005 has TCP/IP connections disabled. To enable TCP/IP support, use the SQL Server Configuration Manager tool, select SQL Server 2005 Network Configuration, select Protocols, double-click on TCP/IP, and turn on Enabled.

    AND

    By default SQL Server 2005 has Named Pipes connections disabled. To enable Named Pipes support, use the SQL Server Configuration Manager tool, select SQL Server 2005 Network Configuration, select Protocols, double-click on Named Pipes, and turn on Enabled.

  • I already have tcp/ip and namedpipes enabled. So it is no the error i think.

  • To fix this problem I did change the Named pipe value from below \\.\pipe\MSSQL$SQLEXPRESS\sql\query to

    \\.\pipe\sql\query using SQL Server Configuration Manager.

  • Below this may help you..

    As of my knowledge before going to start SQL server in single user mode first we need to stop the server and start the server through command prompt by using

    ----Net start mssql$name of the instance /m

    or it is a default instance

    net start mssqlserver /m

  • Below this may help you..

    As of my knowledge before going to start SQL server in single user mode first we need to stop the server and start the server through command prompt by using

    ----Net start mssql$name of the instance /m

    or it is a default instance

    net start mssqlserver /m

  • Below this may help you..

    As of my knowledge before going to start SQL server in single user mode first we need to stop the server and start the server through command prompt by using

    ----Net start mssql$name of the instance /m

    or it is a default instance

    net start mssqlserver /m

  • Below this may help you..

    As of my knowledge before going to start SQL server in single user mode first we need to stop the server and start the server through command prompt by using

    ----Net start mssql$name of the instance /m

    or it is a default instance

    net start mssqlserver /m

  • You can use -m switch in sqlcmd.

    http://msdn.microsoft.com/en-us/library/ms190737.aspx

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply