I have moved a SQL database to a new server and one of the utilities I need to use requires me to log in as the database owner for the life of me I can not seem to find how to change the tables owner can someone please explain how to do that...
Database owner and table owner are two different things.
Do you have the SA or Sysadmin account information? If so, just log in as that and you should have all the rights you need to do whatever you want.
If you're actually trying to change the owner of a user owned database/table/object, you can use the sp_changedbowner or sp_changeobjectowner system stored procedures.
Caveats are as follows:
To use sp_changeDBOwner, youneed to be Sysadmin or the current owner of the db.
To use sp_ChangeObjectOwner you need to be Sysadmin or be assigned to the DBO, db_ddladmin or db_securityAdmin roles.
Hope that helps.
Catadmin - MCDBA, MCSA
"If a person is Microsoft Certified, does that mean that Microsoft pays the bills for the funny white jackets that tie in the back???
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.