Question : The proposed new database owner is already a user or aliased in the database. (Microsoft SQL Server, Error: 15110)

Dear E,

Im getting error :

TITLE: Microsoft SQL Server Management Studio Express
------------------------------

Attach database failed for Server 'IIS\SQLEXPRESS'.  (Microsoft.SqlServer.Express.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)

------------------------------

The proposed new database owner is already a user or aliased in the database. (Microsoft SQL Server, Error: 15110)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.4053&EvtSrc=MSSQLServer&EvtID=15110&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------



Need help to solve this problem when Im trying to attach an WSS 3.0 database in order to move it to a new server. I have try before with success but I have detach it to do same changes on system and now I can't attach it back.

Thanks in advance

Answer : The proposed new database owner is already a user or aliased in the database. (Microsoft SQL Server, Error: 15110)

Thats good...so are you able to access the database then? That error shows that the database owner login has been already associated to some other login in the server.

You can rectify this by changing the database owner to some other login - Can be done using the below query:

USE dbname
go
EXEC sp_changedbowner 'newloginname'


Random Solutions  
 
programming4us programming4us