导致此错误的原因..请运行“exec sp_register_custom_scripting'CUSTOM_SCRIPT',your_script?

时间:2010-12-30 18:52:06

标签: sql-server-2005 sql-server-2008 replication ddl

配置

SQL 2005(服务器A)复制到SQL 2008(服务器B),它复制到SQL 2008(服务器C)。

我最近通过脚本& amp;添加了一个列(到服务器A)到一个复制表。 DDL更改复制到服务器B没有问题。当DDL更改复制到服务器C时,我收到以下错误。

'DDL复制无法刷新自定义过程,请运行“exec sp_register_custom_scripting'CUSTOM_SCRIPT',your_script,'来自xx的EDI','table_name_here'”并再试一次(来源:MSSQLServer,错误号:21814)'

这些订阅(在服务器B到服务器C上)是通过下面的脚本创建的。

** exec sp_addsubscription @publication = N'EDI to XLOCX',@ subsscriber = N'RXLOCXS-SQLA',@ destination_db = N'EDI',@ subscription_type = N'Push',@ sync_type = N'replication支持只有',@ article = N'all',@ update_mode = N'read only',@ subscriber_type = 0

exec sp_addpushsubscription_agent @publication = N'EDI到XLOCX(合并)',@ subscriber = N'RXLOCXS-SQLA',@ subscriber_db = N'EDI',@ job_login = N'ROUSES.COM \ RXLOCXSQLREPL',@ job_password = N'XPASSWORDX',@ subscriber_security_mode = 1,@ frequency_interval = 4,@ frequency_relative_interval = 1,@ frequency_recurrence_factor = 1,@ frequency_subday = 8,@ frequency_subday_interval = 1,@ active_start_time_of_day = 3300,@ active_end_time_of_day = 235959 ,@ active_start_date = 20070923,@ active_end_date = 99991231,@ enabled_for_syncmgr = N'False',@ dts_package_location = N'Distributor'**

GO

所以百万美元的问题是,当我在EDI中向XLOCX出版物的表中添加一列时,为什么我得到错误'exec sp_register_custom_scripting'CUSTOM_SCRIPT',your_script'

AHIA,

... LarryR

1 个答案:

答案 0 :(得分:0)

听起来像自定义存储过程(SP)用于复制数据。需要更新自定义SP以反映列更改。 SP需要在所有服务器上更新。有关自定义过程的信息将与文章相关联,而不是订阅。

如果您不使用,则需要确定文章认为需要自定义程序的原因。