Hi
The current environment and situation :
- Transactionnal replication
- Initialisation by backup-restore
- Replication of a new table
- Publisher : SQL Server 2008 (SP3) enterprise
- Distributor : SQL Server 2008 (RTM) enterprise
The problem :
When, I add the new objet by wizard or query :
EXEC sp_addarticle @publication = N'MyDB_Publication_Tran' , @article = N'aaa_test_replication_V2' , @source_owner = N'dbo' , @source_object = N'aaa_test_replication_V2' , @type = N'logbased' , @description = N'' , @creation_script = N'' , @pre_creation_cmd = N'drop' , @schema_option = 0x000000044A0378DF , @identityrangemanagementoption = N'manual' , @destination_table = N'aaa_test_replication_V2' , @destination_owner = N'dbo' , @status = 24 , @vertical_partition = N'false' , @ins_cmd = N'CALL [sp_MSins_dboaaa_test_replication_V2]' , @del_cmd = N'CALL [sp_MSdel_dboaaa_test_replication_V2]' , @upd_cmd = N'SCALL [sp_MSupd_dboaaa_test_replication_V2]'
The first insertions in the table aaa_test_replication_V2 are not replicated to the subscriber.
I haven't error in replication monitor and the others tables are synchronized
But, the commands are seen by the distributor, I check the existence of the command to replicate with :
USE distribution SELECT s.name AS publisher , p.publisher_db , a.article , p.publication , SUM(NbCommands) AS NbCommands FROM ( SELECT publisher_database_id , article_id , COUNT(*) AS NbCommands FROM MSrepl_commands cmd GROUP BY publisher_database_id, article_id ) cmd INNER JOIN MSpublisher_databases pd ON pd.id = cmd.publisher_database_id INNER JOIN MSpublications p ON pd.publisher_id = p.publisher_id AND pd.publisher_db = p.publisher_db INNER JOIN MSarticles a ON a.article_id = cmd.article_id AND a.publisher_id = pd.publisher_id AND a.publisher_db = p.publisher_db INNER JOIN sys.servers s ON p.publisher_id = s.server_id WHERE a.article LIKE 'aaa_test_replication%' GROUP BY s.name, p.publisher_db, a.article, p.publication ORDER BY NbCommands DESC
Why, won’t the rows replicate?
The table :
CREATE TABLE aaa_test_replication_V2 (ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY, C CHAR(100))
The insertion :
INSERT INTO aaa_test_replication_V3 VALUES ('dazoin') GO 100