cancel
Showing results for 
Search instead for 
Did you mean: 

Run script on client after synchronization

Former Member
937

I have some business logic I need to apply at the remote base when synchronization is complete.

How can I set this script to run (from file or as a stored procedure as an example) after each successful synchronization ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Take a look at the sp_hook_dbmlsync_end stored proc which is executed at the end of each sync.

jeff_albion
Advisor
Advisor
0 Kudos

You will also want to check the #hook_dict temporary table for the 'exit code' and 'upload status' synchronization results and perform logic on those values:

e.g.

IF EXISTS (SELECT 1 FROM #hook_dict WHERE name = 'exit code' and value = '0') THEN
    ...
END IF;

Answers (0)