Can I track database deployments with SQL Monitor?
DavidKeaveny
Posts: 7 New member
After a recent bout of troubleshooting a troubled deployment, using SQL Compare to determine a few schema differences between testing and production systems, I noticed that SQL Monitor very handily tracks when SQL Compare is used to modify a database that it is monitoring. There are a few articles about this sort of thing (e.g. https://www.red-gate.com/hub/product-learning/sql-monitor/unearthing-bad-deployments-sql-monitor-redgates-database-devops-tools).
What I would like to be able to do is to extend this to our automated deployment system, which is based on Octopus Deploy and not directly on Redgate's tools. If I add log an event using something similar to the SQL code shown in https://documentation.red-gate.com/sc13/getting-more-from-sql-compare/sql-monitor-integration, can I get SQL Monitor to display when the deployment occurs?
What I would like to be able to do is to extend this to our automated deployment system, which is based on Octopus Deploy and not directly on Redgate's tools. If I add log an event using something similar to the SQL code shown in https://documentation.red-gate.com/sc13/getting-more-from-sql-compare/sql-monitor-integration, can I get SQL Monitor to display when the deployment occurs?
Tagged:
Best Answer
-
Dan B Posts: 287 Gold 5Hi DavidKeaveny,
That is correct if you add the same SQL to your deployment scripts then SQL Monitor will pick this up and add it to the timeline as a SQL Compare change.
Please do let me know if you have any further questions on this.Kind regards,
Dan Bainbridge
Product Support Engineer | Redgate Software
Answers
Most of the folks on these forums will be using Octopus to orchestrate a task with Redgate SQL Change Automation, either from a PowerShell script or using one of the Redgate community step templates. If that's what you are doing, or if you are just running the SQL Compare command line, it should show up in SQL Monitor for you automatically.
Is that what you are doing, or are you doing something else?
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn
Does SQL Monitor only support deployment marking for Redgate-based deployments (whether SQL Compare, Change Automation etc)? In other words, could I have a different icon/logo if I used slightly different text in my log event?
There is only one choice of logo. Whether you can reverse engineer this I'm not sure but that isn't something we would be able to assist with.
Dan Bainbridge
Product Support Engineer | Redgate Software