I want to create a smart way to execute a SQL script when rolling out DB changes into QA, UAT and production environments in order to smoke test database changes are correct after maintenance has been completed.
What's the best way to do this?
For now I am running multiple such SQL selects to do a visual compare of existing DB values to expected values. Here is my code:
select value as DBvalue, 'text' as PRODvalue -- could be 'text' or 'html' from ConfigParams where paramname = 'EmailBodyType' and environment = 'prod'
Then the result will be a two-field result set that shows DB values next to expected values.
I have a listing of 10 or so SQL selects to validate param values are updated and correct after the DB work is done. Is there a better way?