all groups > sql server replication > may 2007 >
You're in the

sql server replication

group:

merge repl sync failing


merge repl sync failing jaylou
5/30/2007 10:49:03 AM
sql server replication:
Hi All,
I have SQL 2005 merge repl working at about 20 branches. I just added a new
one, but for some reaon the tables and procs in the articles are not being
sent to the subscriber. I thought the agent when started will sync the 2
together. I scripted out one of my other branch repl and changed the names
to the new branch name.

below is the way I added this new repl to my main server I left out the
articles. I can add one or 2 if needed.

use master
exec sp_replicationdboption @dbname = N'PP3_CENTRAL', @optname = N'merge
publish', @value = N'true'
GO

-- Adding the merge publication
use [CENTRAL]
exec sp_addmergepublication @publication = N'CENTRAL_BR39', @description =
N'Merge publication of BR39', @sync_mode = N'native', @retention = 14,
@allow_push = N'true', @allow_pull = N'true', @allow_anonymous = N'true',
@enabled_for_internet = N'true', @snapshot_in_defaultfolder = N'true',
@alt_snapshot_folder = N'E:\Microsoft SQL Server\MSSQL\REPLDATA\FTP',
@compress_snapshot = N'false', @ftp_address = N'SQLSERVER1', @ftp_port = 21,
@ftp_login = N'<domain>\<User>', @allow_subscription_copy = N'false',
@add_to_active_directory = N'false', @dynamic_filters = N'false',
@conflict_retention = 14, @keep_partition_changes = N'true',
@allow_synctoalternate = N'false', @max_concurrent_merge = 0,
@max_concurrent_dynamic_snapshots = 0, @use_partition_groups = N'true',
@publication_compatibility_level = N'90RTM', @replicate_ddl = 1,
@allow_subscriber_initiated_snapshot = N'false', @allow_web_synchronization =
N'false', @allow_partition_realignment = N'true', @retention_period_unit =
N'days', @conflict_logging = N'publisher', @automatic_reinitialization_policy
= 0
GO


exec sp_addpublication_snapshot @publication = N'CENTRAL_BR39',
@frequency_type = 8, @frequency_interval = 32, @frequency_relative_interval =
1, @frequency_recurrence_factor = 1, @frequency_subday = 1,
@frequency_subday_interval = 5, @active_start_time_of_day = 4700,
@active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date =
0, @job_login = null, @job_password = null, @publisher_security_mode = 0,
@publisher_login = N'sa', @publisher_password = N''
exec sp_grant_publication_access @publication = N'CENTRAL_BR39', @login =
N'sa'

--Adding subscriber
exec sp_addmergesubscription @publication = N'CENTRAL_BR39', @subscriber =
N'BR39', @subscriber_db = N'BR039', @subscription_type = N'Push', @sync_type
= N'None', @subscriber_type = N'Global', @subscription_priority = 75,
@description = N'', @use_interactive_resolver = N'False'
exec sp_addmergepushsubscription_agent @publication = N'CENTRAL_BR39',
@subscriber = N'BR39', @subscriber_db = N'BR039', @job_login = null,
@job_password = null, @subscriber_security_mode = 0, @subscriber_login =
N'sa', @subscriber_password = null, @publisher_security_mode = 1,
@frequency_type = 4, @frequency_interval = 1, @frequency_relative_interval =
1, @frequency_recurrence_factor = 0, @frequency_subday = 1,
@frequency_subday_interval = 0, @active_start_time_of_day = 225500,
@active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0
Re: merge repl sync failing Hilary Cotter
5/30/2007 11:12:03 PM
Manually run the snapshot agent and then run the merge agent. this should
generate the snapshot and the next time the merge agent runs it should pick
it up.

--
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
[quoted text, click to view]

Re: merge repl sync failing jaylou
5/31/2007 4:42:00 AM
Thank you. I already ran the snapshot agent manully and it created the 108
articles, but it did not apply the snapshot. I can't seem to find the merge
agent. did they hide it in 2005? I checked the local subscription and
checked the sync status, but it showed as failed since the tables were not at
the location yet.

Thanks again,
joe

[quoted text, click to view]
AddThis Social Bookmark Button