I am trying to load a dll in MSSQL using
USE dbname GO CREATE ASSEMBLY foo FROM 'C:\foo\foo.dll' WITH PERMISSION_SET = UNSAFE GO
And I get the error message:
Msg 33009, Level 16, State 2, Line 2
The database owner SID recorded in the master database differs from the database owner
SID recorded in database 'dbname'. You should correct this situation by resetting the
owner of database 'dbname' using the ALTER AUTHORIZATION statement.
MSDN really no longer tells me about the error the error is talking about.
I looked all over the Internet and came to the conclusion that only what ever did to avoid this was:
use dbname go EXEC dbo.sp_changedbowner @loginame = N'sa', @map = false
But is the owner really changing the only way to avoid this error? Why should I do this, is there any other way? I want more information about this error before I log in and blindly change the owner.
source share