Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 how to change owner of table ?

Author  Topic 

pamyral_279
Posting Yak Master

143 Posts

Posted - 2006-08-22 : 22:36:31
I have created some of tables in mydatabase .
Now i want to change owner of that table .
How can i do ?
Thank you very much .

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-08-23 : 00:47:41
sp_changeobjectowner [ @objname = ] 'object' , [ @newowner = ] 'owner'

sp_changeobjectowner 'olduser.usertable', 'dbo'

Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -