The Data Command Generator Utility is a simple command line tool that is used to resolve specific database discrepancies between the CM4D and Results databases (e.g., new db columns) following a version upgrade. This utility is installed with CM4D Server (.\CM4D\Database Utilities folder) and should only be run as directed by ATS support by users with a clear knowledge of CM4D databases and configuration.
Results database Routines table before running Data Command Generator option 1 Routines Payload.
CM4D Site database Results Export Command Queue displaying the entry for Routines Payload.
Results database Routines table after Data Command Generator option 1 Routines Payload.
This utility is located in the following directory: .\Applied Tech Systems\CM4D\Database Utilities\Data Command Generator
The Data Command Generator requires a Site connection to the SQL database. By default, this string is obtained from the Cm4d.4ds file (configured with DB Connect) registered with your CM4D installation. If this is not accessible, you are prompted to enter the string manually in the command window.
To ensure you have sufficient system privileges to run the database utilities, it is recommended executing the tool using 'Run as administrator'.
Connection information may also be entered as command line arguments when running the application via Command Prompt. See the topic Database Utilities for more information on how to Run Utility via Command Prompt Line Arguments.
Before running Data Command Generator, run DB Connect and enter the Site database connection information as you normally would when connecting to an existing database. The authentication user must have sufficient privileges to create/modify databases in SQL Server.
Run Data Command Generator (as Administrator) and follow the prompts to complete the required database task.
If the Cm4d.4ds file cannot be accessed when Data Command Generator is run, you are prompted to type the CM4D Site database connection information one line at a time. Once you have entered all of the required connection details, press 'Y' to continue.
Once the database connection is established, choose from the available options:
Can we improve this topic?