2014-06-13 361 views
1

我打开SQL Server Management Studio与以管理员身份运行 ...如何修复Microsoft SQL Server,错误:262?

并且Windows认证连接没有问题。

我通过右键单击数据库文件夹来选择“新建数据库”。

并为数据库命名'BTS'。

当我选择好了,我得到的错误作为,

enter image description here

如何解决呢?

回答

8

this blog post

To add a Windows user that has the login “machinename\Administrator” to the sysadmin fixed server role

  1. Log on to the computer using the credentials for the machinename\Administrator account.
  2. Click the Start button, point to All Programs, click Microsoft SQL Server, and then click SQL Server Management Studio.
  3. Connect to an instance of SQL Server.
  4. Click Security, right-click Logins, and then click New Login.
  5. In the Login name box, enter the user name.
  6. In the Select a page pane, click Server Roles, select the sysadmin check box, and then click OK.

To add a Windows user that has the login “domainname \username” to the sysadmin fixed server role

  1. Log on to the computer using the credentials for the domainname\username account.
  2. Click the Start button, point to All Programs, click Microsoft SQL Server, right-click SQL Server Management Studio, and then click Run as administrator.

    ps: “Run As Administrator” option elevates the user permissions In the User Access Control dialog box, click Continue.

  3. In SQL Server Management Studio, connect to an instance of SQL Server.
  4. Click Security, right-click Logins, and then click New Login.
  5. In the Login name box, enter the user name.
  6. In the Select a page pane, click Server Roles, select the sysadmin check box, and then click OK.
3

单击开始 - >所有程序 - > SQL Server Management Studio中快速

SQL Server Management Studio中快速--->右键点击 - >以管理员身份运行 - >点击是

它的工作原理

+0

简单而有效 – JoeCoolman