Change database owner using Alter Database 2008


hello,

i need change owner of bunch of databases, , not want use sp_changedbowner deprecated next sql releases. there way in alter database statement?

any appreciated

dave


dave sql developer

use alter authorization.

http://msdn.microsoft.com/en-us/library/ms187359.aspx

 

alter authorization on database::testdb testuser

 


best wishes, arbi --- please vote if find posting helpful or mark answered.


SQL Server  >  Transact-SQL



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........