How to fix Microsoft SQL Server, Error: 262?

一曲冷凌霜 提交于 2019-12-11 01:58:36

问题


I'm opening the SQL Server Management Studio with run as administrator...

And there is no problem with Windows Authentication Connection.

I'm choosing "New Database" by right-click the Databases folder.

And giving name 'BTS' for the Database.

When i'm choosing OK, i get the error as,

How to fix it?


回答1:


From 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.



回答2:


Click Start --> All Programs --> SQL Server Management Studio Express

SQL Server Management Studio Express---> Right Click--->Run as Administrator--> Click Yes

It works



来源:https://stackoverflow.com/questions/24198458/how-to-fix-microsoft-sql-server-error-262

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!