zoukankan      html  css  js  c++  java
  • Rename failed for user 'dbo' -MS SQL ERROR 15150

    SQL SERVER 2016修改“User Mapping"时报错:

    TITLE: Microsoft SQL Server Management Studio
    ------------------------------
    Rename failed for User 'dbo'.  (Microsoft.SqlServer.Smo)
    For help, click: https://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=16.100.37971.0&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Rename+User&LinkId=20476
    ------------------------------
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    ------------------------------
    Cannot alter the user 'dbo'. (Microsoft SQL Server, Error: 15150)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=13.00.5026&EvtSrc=MSSQLServer&EvtID=15150&LinkId=20476
    ------------------------------
    BUTTONS:
    OK
    ------------------------------

    解决方法:

    以SA登录SQL SERVER STUDIO,执行下面的命令:

    use testdatabaseName
    EXEC sp_changedbowner 'sa','true'

  • 相关阅读:
    word查找与替换
    细说ASP.NET Windows身份认证
    防钓鱼代码
    sql触发器
    url地址栏参数
    sql递归查询
    认识TWICImage类
    尝试发个贴
    泛型单元
    [学习官方例子]TArray
  • 原文地址:https://www.cnblogs.com/rusking/p/13095605.html
Copyright © 2011-2022 走看看