sql server

时间:2015-12-01 09:53:49

标签: sql-server sql-server-2012

创建聚合函数时遇到此错误 这是创建脚本:

CREATE ASSEMBLY MyAgg FROM 'C:\AggregateConcatenate4.0.dll';
GO
CREATE AGGREGATE MyAgg (@input nvarchar(max)) RETURNS nvarchar(max)
EXTERNAL NAME MyAgg.Concatenate;

这是错误:

  Msg 6285, Level 16, State 1, Line 1
    CREATE ASSEMBLY failed because the source assembly is, according to MVID, identical to an assembly that is already registered under the name "AggConcat2".

但是当我尝试使用此脚本删除Aggregate时:

DROP AGGREGATE [dbo].AggConcat2;

我遇到了这个错误:

Msg 3701, Level 11, State 5, Line 2
Cannot drop the aggregate function 'dbo.AggConcat2', because it does not exist or you do not have permission.

我无法弄清楚为什么以及何时检查对象资源管理器"聚合函数"文件夹是空的。

更新

存在大会 enter image description here

删除程序集后删除错误:

DROP ASSEMBLY MyAgg

0 个答案:

没有答案