Hi
I am creating a pull subscription by running below code at the end. The subscription gets created but not the sql agent job. What am I missing?
Thanks
Regards
DECLARE @publication AS sysname;
DECLARE @publisher AS sysname;
DECLARE @publicationDB AS sysname;
DECLARE @hostname AS sysname;
SET @publication = N'MYPUB';
SET @publisher = N'MYPUBSERVER';
SET @publicationDB = N'MYPUBDB';
USE [MYPUBDB]
EXEC sp_addmergepullsubscription
@publisher = @publisher,
@publication = @publication,
@publisher_db = @publicationDB;
EXEC sp_addmergepullsubscription_agent
@name ='WebSync Agent',
@publisher = @publisher,
@publisher_db = @publicationDB,
@publication = @publication,
@distributor = @publisher,
@internet_login = 'My Login',
@internet_password = 'My PasswordXyzpassabc099',
@use_web_sync =1,
@internet_url = 'https://mydomain.com/SQLReplication/replisapi.dll',
@internet_security_mode = 0