我正在使用 打开 SQL Server Management Studio以管理员身份运行 ...
并且 Windows 身份验证连接没有问题。
我通过右键单击“数据库”文件夹来选择“新建数据库”。
并为数据库命名为“BTS”。
当我选择 OK 时,我得到的错误是,
如何解决?
最佳答案
To add a Windows user that has the login “machinename\Administrator” to the sysadmin fixed server role
- Log on to the computer using the credentials for the machinename\Administrator account.
- Click the Start button, point to All Programs, click Microsoft SQL Server, and then click SQL Server Management Studio.
- Connect to an instance of SQL Server.
- Click Security, right-click Logins, and then click New Login.
- In the Login name box, enter the user name.
- 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
- Log on to the computer using the credentials for the domainname\username account.
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.
- In SQL Server Management Studio, connect to an instance of SQL Server.
- Click Security, right-click Logins, and then click New Login.
- In the Login name box, enter the user name.
- In the Select a page pane, click Server Roles, select the sysadmin check box, and then click OK.
关于sql-server - 如何修复 Microsoft SQL Server,错误 : 262?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24198458/