Open menu
KS DB Merge Tools logo KS DB Merge Tools
database diff & merge
AccdbMerge logo for MS Access
aka AccdbMerge
KS DB Merge Tools for MySQL logo
MssqlMerge logo
KS DB Merge Tools for PostgreSQL logo
KS DB Merge Tools for Oracle logo
KS DB Merge Tools for SQLite logo
KS DB Merge Tools for Cross-DBMS logo
KS DB Merge Tools All-In-One license
Other tools

Automation and Scripting

AccdbMerge can perform many database comparison and synchronization tasks without user interaction. It includes a built-in scripting language designed to automate common workflows.

For example, you need a nightly CI build that checks for data changes between your Dev and Staging databases. While this report can be generated manually using the GUI (see Data Changes Summary use case), automation is required for unattended execution.

This section covers two ways to create automation scripts using the Script Editor:

  1. Write from scratch: Create a script manually in the Script Editor.
  2. Generate from GUI: Let the tool generate a script template based on current GUI state.

This feature is available only in the Standard version.

Write Automation Script from Scratch

  1. Open the Script Editor application. The suggested script example includes BatchDataDiff, which is used to get a data changes summary. All available functions and parameters are described in the documentation. Update A database file names, script log path, and JSON report file paths. Choose B which command line tool to use - 32 or 64 bit (should correspond to your MS Access). Click C Check script for errors (without run) to validate.

    for MS Access, Script Editor - setup
  2. Check D validation result. EXIT CODE: 0 with no errors means success. If errors occur, fix the script and revalidate. After successful validation, click E Run script.

    for MS Access, Script Editor - validation result
  3. Check F execution result. EXIT CODE: 0 indicates success. After execution, the Script Editor checks if log and result files were created and converts file paths into clickable links. In case of errors, G open the log file to review them. To verify results, H click the result file name to open it.

    for MS Access, Script Editor - execution result
  4. Once your script is ready, select and copy its text, paste it into a text editor, and save it with a *.ksdms extension, for example as "c:\projectName\dataDiff.ksdms".

  5. Assuming AccdbMerge is installed on your CI server, create a pipeline task to run:

    "c:\Program Files (x86)\AccbdMerge\AccbdMergeCmd.exe" "c:\projectName\dataDiff.ksdms"

    (or use AccbdMergeCmd64.exe for 64-bit Access)

Generate Script from GUI

  1. Open databases (see the Project Changes Summary use case) and click A Batch data diff.

    for MS Access, Home tab, open Batch data diff
  2. Select B required calculation type and click C Generate automation script stub for this data.

    for MS Access, Home tab, click Generate script
  3. The application opens Script Editor with a pre-filled function call (BatchDataDiff) and parameters matching the current view. You only need to D replace TODOs for file paths. Then proceed with script validation and execution, as shown in the previous use case.

    for MS Access, Script Editor with a script for our current GUI tab