【发布时间】:2010-03-09 09:36:38
【问题描述】:
我正在尝试在 SQL Server 2005 上配置复制。我可以使用向导来完成。但是,当我尝试通过此向导运行生成的脚本时,会出现错误消息:
Msg 14013, Level 16, State 1, Procedure sp_MSrepl_addpublication, Line 159
This database is not enabled for publication.
Msg 18757, Level 16, State 1, Procedure sp_MSrepl_addpublication_snapshot, Line 66
Unable to execute procedure. The database is not published. Execute the procedure in a database that is published for replication.
Msg 14013, Level 16, State 1, Procedure sp_MSrepl_addarticle, Line 168
This database is not enabled for publication.
Msg 14294, Level 16, State 1, Procedure sp_verify_job_identifiers, Line 25
Supply either @job_id or @job_name to identify the job.
这有点奇怪,因为当我在单击然后删除出版物的数据库上运行此查询时,一切都很顺利。问题是当我在新数据库上使用我的查询时。 更重要的是我正在使用 sp_replicationdboption 存储过程。当我尝试运行它时,它说:
数据库ReplicationTest00 的复制选项publish 已设置为true。
请帮我解决这个问题。
【问题讨论】:
标签: sql-server sql-server-2005 replication