我试图在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.
这是一个有点奇怪,因为当我运行数据库查询这个地方我点击,然后取出出版,everyting是进展顺利。问题是当我在新数据库上使用我的查询时。 什么是我正在使用sp_replicationdboption存储过程。当我试着运行它时,它说:
数据库ReplicationTest00
的复制选项publish
已被设置为true。
请帮我解决这个问题。
的情况下能否请您提供您如何在数据库的情况下运行脚本的示例,而不是server..becouse我面临同样的问题,我GOOGLE了很多,但米无法找到任何解决方案。请帮助 – vinay 2012-03-19 13:07:52
@vinay它只是在脚本的顶部输入表达USE(数据库名称)GO。 – WendyDroid 2013-06-21 18:48:12