Solved

Error 20736 while setting up merge replication in SQL Server 2000

Posted on 2008-10-30
4
379 Views
Last Modified: 2012-08-13
I'm trying to setup a merge replication for a database (name is eeq_ann)  in SQL Server 2000.

I got the problem before so I tried a clean install and I still have the trouble.

I create a distributor for my server without any problem.  Now I try to setup a new publication so I use "new publication" in the Enterprise Manager.

I see my database 'eeq_ann', select the table I want to replicate, etc. then I create the publication.  However, during the publication creation process, there is an error :

SQL Server Enterprise Manager could not create publication 'eeq_ann' from database 'eeq_ann'
Error 20736: [SQL-DMO]This object has been dropped from the server.

After that, if I go to create a new publication, I cannot select my database as the system somehow thinks there is one even thougth I cannot see it in the enterprise manager explorer.  When I go to Tools -> Replication -> Create and Manage Publications, I can see it in the tree view but I cannot delete it.

So I tried to delete it manually using the following :

use eeq_ann
go
exec sp_dropmergepublication @publication=N'eeq_ann'
use master
go
exec sp_replicationdboption @dbName=N'eeq_ann',@optname=N'merge publish',@value=N'false'

it says it removed the publication and I do not see it anymore as a matter of fact.  So I tried to recreate the publication, but now I get the same 20736 error in the publication wizard when I try to select a table to merge.

Thanks for the help!
0
Comment
Question by:Francois_Tremblay
  • 3
4 Comments
 
LVL 15

Accepted Solution

by:
MohammedU earned 500 total points
ID: 22846724
Did you try creating with script...if not...
Try the following...

 
 exec sp_adddistributiondb @database = 'distribution', @data_folder =
N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data', @data_file =
N'distribution.MDF', @data_file_size = 7, @log_folder = N'C:\Program
Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data', @log_file =
N'distribution.LDF', @log_file_size = 8, @min_distretention = 0,
@max_distretention = 72, @history_retention = 48, @security_mode = 1
GO

-- Adding the distribution publishers
exec sp_adddistpublisher @publisher = @@servername, @distribution_db =
N'distribution', @security_mode = 0, @login = N'sa', @password = N'',
@working_directory = N'C:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\ReplData', @trusted = N'false', @thirdparty_flag = 0,
@publisher_type = N'MSSQLSERVER'
GO
0
 

Author Comment

by:Francois_Tremblay
ID: 22849363
I think I found the problem.  

When I created my table, I created it using a DTS from the table on the old computer we are replacing.  I copied everything, then I removed the rowguid column created by the replication settings.  However, I did not remove the data.  When I remove the data the replication is created successfully.

I will try later today to see if everything works, I just created it right now.
0
 

Author Comment

by:Francois_Tremblay
ID: 22850883
I found out that when I start from a restore of the database I have lots of trouble creating the replication.

So right now I instead create an empty database and use the script generated by the enterprise manager to output all tables information directly in that empty database.

Now it works.
0
 

Author Closing Comment

by:Francois_Tremblay
ID: 31511841
Did not solve the problem but put me on the path.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question