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 ?

asked 21 Nov '14, 09:29

OskarEmil's gravatar image

OskarEmil
431161831
accept rate: 50%


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

permanent link

answered 21 Nov '14, 09:39

Mike%20Killey's gravatar image

Mike Killey
291169
accept rate: 60%

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;
(24 Nov '14, 12:39) Jeff Albion
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×371

question asked: 21 Nov '14, 09:29

question was seen: 735 times

last updated: 24 Nov '14, 12:39