zoukankan      html  css  js  c++  java
  • 类型 'dbo.cname' 已存在,或者您没有创建它的权限

    1、错误描述

    ===================================
    
    创建 对于 UserDefinedDataType“dbo.cname”失败。  (Microsoft.SqlServer.Smo)
    
    ------------------------------
    有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.2100.60+((SQL11_RTM).120210-1917+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=创建+UserDefinedDataType&LinkId=20476
    
    ------------------------------
    程序位置:
    
       在 Microsoft.SqlServer.Management.Smo.SqlSmoObject.CreateImpl()
       在 Microsoft.SqlServer.Management.SqlManagerUI.UDDTPropGeneral.CreateUDDT()
    
    ===================================
    
    执行 Transact-SQL 语句或批处理时发生了异常。 (Microsoft.SqlServer.ConnectionInfo)
    
    ------------------------------
    程序位置:
    
       在 Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType)
       在 Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(StringCollection sqlCommands, ExecutionTypes executionType)
       在 Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteNonQuery(StringCollection queries)
       在 Microsoft.SqlServer.Management.Smo.SqlSmoObject.ExecuteNonQuery(StringCollection queries, Boolean includeDbContext)
       在 Microsoft.SqlServer.Management.Smo.SqlSmoObject.CreateImplFinish(StringCollection createQuery, ScriptingPreferences sp)
       在 Microsoft.SqlServer.Management.Smo.SqlSmoObject.CreateImpl()
    
    ===================================
    
    类型 'dbo.cname' 已存在,或者您没有创建它的权限。 (.Net SqlClient Data Provider)
    
    ------------------------------
    有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.2100&EvtSrc=MSSQLServer&EvtID=219&LinkId=20476
    
    ------------------------------
    服务器名称: SKY-20160824VTF
    错误号: 219
    严重性: 16
    状态: 1
    行号: 1
    
    
    ------------------------------
    程序位置:
    
       在 Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction action, Object execObject, DataSet fillDataSet, Boolean catchException)
       在 Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType)


    2、错误原因

         在用户定义数据类型时,出现了重复定义数据类型cname


    3、解决办法

    (1)将原来定义的数据类型cname删掉

    (2)将现在定义的数据类型改为其他的名称

  • 相关阅读:
    HttpWebRequest中的ContentType详解
    c# 创建Windows服务
    转载 Url编码
    在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。
    IE兼容模式下 SCRIPT1028: 缺少标识符、字符串或数字
    Response.ContentLength获取文件大小
    unable to instantiate activity...
    查看android-support-v4.jar引出的问题
    导入项目 R.java没有
    初识python: 局部变量、全局变量
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13314005.html
Copyright © 2011-2022 走看看