Database drift
Last updated
Last updated
In some cases, you may receive the following error when upgrading from DacPac:
When SQLWATCH is deployed, it registers itself as data-tier application, which adds a record in msdb.dbo.sysdac_instances
.
This is userful to identify currently installed version of SQLWATCH.
The error may happen when database objects have been changed since the last deployment, for example, when you deploy SQLWATCH into your existing "dba_tools" database and add or remove some other tables, not related to SQLWATCH.
To work around this issue, we have to unregister data-tier application. This can be done in SQL Server Management Studio:
Right click database -> Tasks -> Delete Data-Tier Application
Alternatively, you can use T-SQL to achieve the same: