When I try to install tSQLt onto an existing database i get the following error:
The database owner SID recorded in the master database differs from
Apply the below script on database you get the error:
EXEC sp_changedbowner 'sa' ALTER DATABASE [database_name] SET TRUSTWORTHY ON