The new Batch Query Conversion tool has been created and consists of the following components:
The convert_queries.bat file should be modified before it is used.
All these files are located in $DovetailAgent\scripts folder.
To run the script, execute a command:
CScript convert_queries.js [option...] parameters
where 'option' is any CScript option.
Note: all the reporting messages will appear on the console. Redirect this stream to a file for analysis.
The parameters include:
The script uses /directory:<dir> parameter to locate fc.env file with database connection credentials. This parameter is optional. If it's not present, current directory will be assumed.
If any combination of /supervisor, /user, and /query parameters is used they are prioritized as follows:
Examples:
get help with parameters
CScript convert_queries.js ?
preview-only run, use fc.env file in the directory provided
CScript convert_queries.js /directory:my_path\my_directory
preview-only run, use fc.env file in current directory, examine only queries created by specified user
CScript convert_queries.js /user:<user>
conversion run, use fc.env file in the directory provided, convert specific query only
CScript convert_queries.js /directory:my_path\my_directory /convert:true /query:<objid>
a sample fc.env file is provided in the $DovetailAgent\scripts folder.
See Also |
Next |