I am trying to monitor continuous replication state using transact sql from a C # application. From my C # application, I successfully run the task using this.
exec sp_startpushsubscription_agent @publication = 'myPublication', @subscriber = 'my_subscriber_server_name', @subscriber_db = 'my_subscriber_db'
Now, I want to know if my synchronization is complete or not or some error has occurred. When the process is complete, I want to give a successful message to the user.
Any help?
source share