聚合函数不可作为合并代表出版物中的文章使用
我设置了合并复制,但我刚刚注意到聚合函数在我的订阅服务器上不可用。 经过进一步调查,我发现出版物中甚至没有提供此选项。 那里还列出了其他功能,但没有列出该功能。
有想法吗?
是否有一些内容不允许聚合处于复制方案中? 如果是这样,我将如何将其获取到本地数据库?
下面是聚合函数的 CREATE TO。 谢谢!
USE [Connect]
GO
/****** Object: UserDefinedAggregate [dbo].[CommaDelimitedString] Script Date: 06/03/2009 16:21:07 ******/
CREATE AGGREGATE [dbo].[CommaDelimitedString]
(@value [nvarchar](4000))
RETURNS[nvarchar](4000)
EXTERNAL NAME [SqlServerProject1].[SqlServerProject1.CommaDelimitedString]
GO
EXEC sys.sp_addextendedproperty @name=N'AutoDeployed', @value=N'yes' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'AGGREGATE',@level1name=N'CommaDelimitedString'
GO
EXEC sys.sp_addextendedproperty @name=N'SqlAssemblyFile', @value=N'CommaDelimitedString.vb' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'AGGREGATE',@level1name=N'CommaDelimitedString'
GO
EXEC sys.sp_addextendedproperty @name=N'SqlAssemblyFileLine', @value=12 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'AGGREGATE',@level1name=N'CommaDelimitedString'
I have Merge Replication set up and I just noticed that a Aggregate Function is not available on my Subscriber. After further investigation I discovered that is is not even available in the Publication as an option. There are other Functions listed there but not that one.
Ideas?
Is there something written that doesn't allow Aggregate's to be in a Replication Scheme? If so how would I go about getting this to my local DB's?
Below is a CREATE TO of the Aggregate Function. Thanks!
USE [Connect]
GO
/****** Object: UserDefinedAggregate [dbo].[CommaDelimitedString] Script Date: 06/03/2009 16:21:07 ******/
CREATE AGGREGATE [dbo].[CommaDelimitedString]
(@value [nvarchar](4000))
RETURNS[nvarchar](4000)
EXTERNAL NAME [SqlServerProject1].[SqlServerProject1.CommaDelimitedString]
GO
EXEC sys.sp_addextendedproperty @name=N'AutoDeployed', @value=N'yes' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'AGGREGATE',@level1name=N'CommaDelimitedString'
GO
EXEC sys.sp_addextendedproperty @name=N'SqlAssemblyFile', @value=N'CommaDelimitedString.vb' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'AGGREGATE',@level1name=N'CommaDelimitedString'
GO
EXEC sys.sp_addextendedproperty @name=N'SqlAssemblyFileLine', @value=12 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'AGGREGATE',@level1name=N'CommaDelimitedString'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我来说,它看起来像 CLR 用户定义的聚合。 据我所知,这些不能使用复制进行传输,但必须事先安装在每个参与的数据库中。
To me it looks like a CLR user defined aggregate. To my knowledge those cannot be transfered using replication, but must be installed beforehand in each participating database.