sql-server - 如何修复 Microsoft SQL Server,错误 : 262?

标签 sql-server sql-server-2008 sql-server-2012

我正在使用 打开 SQL Server Management Studio以管理员身份运行 ...

并且 Windows 身份验证连接没有问题。

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

并为数据库命名为“BTS”。

当我选择 OK 时,我得到的错误是,

enter image description here

如何解决?

最佳答案

来自 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.

关于sql-server - 如何修复 Microsoft SQL Server,错误 : 262?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24198458/

相关文章:

sql-server - 重构 T-SQL 嵌套 SELECT 查询以在 case 语句中使用

sql - 从 SQL Server 2012 导出到 PostgreSQL 的问题

sql - 可以在 SQL WHERE 子句中使用 "on-the-fly"列名吗?

c# - 将数据库附加到exe的可能方法

sql-server-2008 - SQL Server 2008 中的合并语句错误(Incorrect syntax near)

sql - 为开发人员提供适当的 SQL Server 权限

sql-server - 将 XML 节点转换为 SQL Server 中的行

sql-server - 创建一个逗号分隔的字符串,其中包含数字 1 到 x,其中 x 是从记录中读取的

sql-server - 通过聚合和分组接收新的格式化表格

asp.net - ASP :QueryStringParameter and empty query string parameter