Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

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

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
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:


IF EXISTS (SELECT 1 FROM #hook_dict WHERE name = 'exit code' and value = '0') THEN
(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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 21 Nov '14, 09:29

question was seen: 754 times

last updated: 24 Nov '14, 12:39