Compare master database sys tables
dtaylo4
Posts: 3 New member
I recently had a software installation that required access to the system master database because of data inserts that were required. This is the first time I've come across this requirement and a change to a system database. I want to compare the master database (before/after) the installation, but I don't see how to select any of the "sys" objects.
Tagged:
Answers
Can you tell what changes the installation is making to the master database (e.g. with a SQL Profiler)?
Redgate Software
RaiseError - https://docs.microsoft.com/en-us/sql/t-sql/language-elements/raiserror-transact-sql
At this point, it seems my only option is to dig through the trace and see what queries were run.
If you want to know what changes have been made, you can select a list of values to a text file from another instance (or newly installed instance) and then import that into a table where you run a query between the two lists.
- Run this on each database:
- ensure the "Include Views" project option is checked
- select the message_id and language_id as the comparison key
- ensure the table is included for comparison (the checkbox on the Tables & Views tab).
This allowed me to compare the data, but deployment fails with "Ad hoc updates to system catalogs are not allowed." I'm guessing an sp_addmessage statement needs to be run for each difference.Hope that helps!
Redgate Software
Redgate Software