Hi Experts,
Am trying to add article using TSQL script and normally follow the steps listed on this link to add from GUI.
https://dba.stackexchange.com/questions/12725/add-article-to-transactional-publication-without-generating-new-snapshot
Now, I scripted out an existing article which is like below
EXEC sp_addarticle
@publication = N'Publisher_Profile',
@article = N'Table',
@source_owner = N'dbo',
@source_object = N'Table',
@type = N'logbased',
@description = N'',
@creation_script = N'',
@pre_creation_cmd = N'drop',
@schema_option = 0x000000000803509F,
@identityrangemanagementoption = N'manual',
@destination_table = N'Table',
@destination_owner = N'dbo',
@status = 24,
@vertical_partition = N'false',
@ins_cmd = N'CALL [sp_MSins_dboTable]',
@del_cmd = N'CALL [sp_MSdel_dboTable]',
@upd_cmd = N'SCALL [sp_MSupd_dboTable]';
GOHow can I ensure the step View Snapshot Agent Statuswhich I do from GUI is performed from TSQL so it just initializes the snapshot for the newly added article not all the existing once's.
Thanks
Priya