Add static text to synchronization
brian.merz
Posts: 55
Is there a way to add text from a file to the generated synchronization query?
For tracking purposes, in each of my non-development databases I have a table containing one row with the date of the last synchronization. It would be nice to have a text file with the update command which can be appended to the end of the generated query so I do not have to copy/paste to the end of each query.
Thanks!
--Brian
For tracking purposes, in each of my non-development databases I have a table containing one row with the date of the last synchronization. It would be nice to have a text file with the update command which can be appended to the end of the generated query so I do not have to copy/paste to the end of each query.
Thanks!
--Brian
Comments
Unfortunately there isn't a way to add your own custom SQL to the generated script.
You might be able to set something up like a batch file to automatically search through the generated .sql file and add the extra line of SQL to the end of the script.
Being able to say include extra sql from a given file in the Synchronization Wizard would be be extremely helpful. Especially if the file path for the extra sql could then be saved in the project.
Thanks,
--Brian
If anyone else has similar requirements, please feel free to post their requirements here.
Kind regards,
David Atkinson
Product Manager
Red Gate Software
Product Manager
Redgate Software
Please let me know if I can be of further assistance,
--Brian