聚合函数不可作为合并代表出版物中的文章使用

发布于 2024-07-22 15:48:35 字数 1080 浏览 4 评论 0原文

我设置了合并复制,但我刚刚注意到聚合函数在我的订阅服务器上不可用。 经过进一步调查,我发现出版物中甚至没有提供此选项。 那里还列出了其他功能,但没有列出该功能。

有想法吗?

是否有一些内容不允许聚合处于复制方案中? 如果是这样,我将如何将其获取到本地数据库?

下面是聚合函数的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

剪不断理还乱 2024-07-29 15:48:36

对我来说,它看起来像 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文