We have Wan Cenario with about 180 site. We need replicate many tables, that
grow up the subscriber database to almost 20 Gb. I intend to make
Transacional Replication.
All test with pull subscriber is ok, but without @independent_agent,
@immediate_sync,@allow_subscription_copy options , i mean, these options are
"false".
The option "ALLOW NEW SUBSCRIPTIO TO BE CREATED BY ATTACHING A COPY OF
SUBSCRIPTION DATABASE", need these options to be "true", but in that way, the
initilialize and syncronism failed.
Please, if anyone know any articles or "the stones' way", please , answer me.
Email: krisnacorreia@hotmail.com
P.S:
Scripts:
--PUBLISHER
Use Ddes400_REP
Go
Declare @TableName nvarchar(20)
Declare @PubName nvarchar(20)
Declare @spINScmd nvarchar(40)
Declare @spDELcmd nvarchar(40)
Declare @spUPDcmd nvarchar(40)
Set @TableName = N'T400GRPU'
Set @PubName = N'Pub_' + @TableName
Set @spINScmd = N'CALL sp_MSins_' + @tablename
Set @spDELcmd = N'CALL sp_MSdel_' + @tablename
Set @spUPDcmd = N'MCALL sp_MSupd_' + @tablename
exec sp_addpublication @publication = @PubName, @restricted = N'false',
@sync_method = N'native', @repl_freq = N'continuous', @description =
N'Transactional publication of Ddes400_REP database from Publisher D001REL01.
', @status = N'active', @allow_push = N'true', @allow_pull = N'true',
@allow_anonymous = N'false', @enabled_for_internet = N'false',
@independent_agent = N'true',
@immediate_sync = N'true', --mudança para permitir backup do subscriber
@allow_sync_tran = N'false', @autogen_sync_procs = N'false', @retention = 0,
@allow_queued_tran = N'false', @snapshot_in_defaultfolder = N'true',
@compress_snapshot = N'false', @ftp_port = 21, @ftp_login = N'anonymous',
@allow_dts = N'false',
@allow_subscription_copy = N'true', --mudança para permitir backup do
subscriber
@add_to_active_directory = N'false', @logreader_job_name = N'D001REL01-
Ddes400_REP-1'
exec sp_addpublication_snapshot @publication = @PubName,@frequency_type = 4,
@frequency_interval = 1, @frequency_relative_interval = 1,
@frequency_recurrence_factor = 0, @frequency_subday = 8,
@frequency_subday_interval = 1, @active_start_date = 0, @active_end_date = 0,
@active_start_time_of_day = 0, @active_end_time_of_day = 235959 ,
@snapshot_job_name = N'Snapshot_T400GRPU-1'
exec sp_addarticle @publication = @PubName, @article = @TableName,
@source_owner = N'dbo', @source_object = @TableName, @destination_table =
@TableName, @type = N'logbased', @creation_script = null, @description = null,
@pre_creation_cmd = N'delete', @schema_option = 0x00000000000000F3, @status =
16, @vertical_partition = N'false', @ins_cmd = @spINScmd, @del_cmd =
@spDELcmd, @upd_cmd = @spUPDcmd, @filter = null, @sync_object = null,
@auto_identity_range = N'false'
go
Declare @PubName nvarchar(20)
Set @PubName = 'Pub_T400GRPU'
Exec sp_addsubscription @publication = @PubName, @subscriber = N'AG046_GER01',
@destination_db = N'Ddes400_REP', @sync_type = N'automatic',
@subscription_type = N'pull', @update_mode = N'read only'
--PULL SUBSCRIBER
Use Ddes400_REP
Go
Declare @PubName nvarchar(20)
Set @PubName = N'Pub_T400GRPU'
Exec sp_addpullsubscription @publisher = N'D001REL01', @publisher_db =
N'Ddes400_REP', @publication = @PubName, @independent_agent = N'false',
@subscription_type = N'pull', @description = N'Transactional publication of
Ddes400_REP database from Publisher D001REL01.', @update_mode = N'read only',
@immediate_sync = 1
Exec sp_addpullsubscription_agent @publisher = N'D001REL01', @publisher_db =
N'Ddes400_REP', @publication = @PubName, @distributor = N'D001REL02',
@subscriber_security_mode = 1, @distributor_security_mode = 1,
@frequency_type = 64, @frequency_interval = 1, @frequency_relative_interval =
1, @frequency_recurrence_factor = 0, @frequency_subday = 4,
@frequency_subday_interval = 5, @active_start_date = 0, @active_end_date = 0,
@active_start_time_of_day = 0, @active_end_time_of_day = 235959,
@enabled_for_syncmgr = N'false', @use_ftp = N'false', @publication_type = 0,
@dts_package_location = N'subscriber', @offloadagent = N'false'
--
Message posted via
http://www.sqlmonster.com