English 中文(简体)
SQL SQL SQL 2008 SQL 2008 服务器, 以单一用户模式使用, 不允许连接
原标题:SQL Server 2008 in single-user mode allows no connections

我不知道SA的密码,所以我以单一用户模式重新启动了SQL服务器2008标准编辑实例,希望更改SA的密码。

sqlcmd - S服务器Names2008

Msg 18461, Level 14, State 1, Server serverNameSS2008, Line1 Login failed for user serverNameAdministrator . Reason: Server is in single user mode. Only one administrator can connect at this time.

我试图改变密码 换出产量

C:Documents and SettingsAdministrator>sqlcmd -U sa -z p@ssword Password: Msg 18470, Level 14, State 1, Server serverName, Line 1 Login failed for user sa . Reason: The account is disabled.

- 是否真的代表零用户模式, 或者有什么可怕的 扭曲与我的服务器?

最佳回答

您的连接可能立即被其他服务(如SQL代理、报告服务)所截取。

您可以用 -m 开关通过一个可选择的额外客户名参数。

例如,使用

-m"sqlcmd"   

只能允许一个自称为 sqlcmd 客户程序的程序使用单一的可用连接 。 < a href="http://msdn.microsoft.com/en-us/library/ms188236.aspx > 见有关这方面的更多文件。

问题回答

暂无回答




相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签