How to configure replication? - This database is not enabled for publication.

Posted by truthseeker on Stack Overflow See other posts from Stack Overflow or by truthseeker
Published on 2010-03-09T09:36:38Z Indexed on 2010/03/09 9:51 UTC
Read the original article Hit count: 568

Hi,

I'm trying to configure repication on SQL Server 2005. I can done it using wizard. But when I'm trying to run generated scripts by this wizard the error message appears:

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.

It's a bit strange, because when I'm running this query on database where I clicked and then removed publication, everyting is going well. The problem is when I'm using my query on new database. What is more I'm using sp_replicationdboption stored procedure. When I'm tryin to run it, it says:

The replication option 'publish' of database 'ReplicationTest00' has already been set to true.

Please help me resolve this issue.

© Stack Overflow or respective owner

Related posts about replication

Related posts about sql-server-2005