[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

DBO Ownership change MSSQL Enterprise Manager

Posted on 2007-04-11
3
Medium Priority
?
857 Views
Last Modified: 2010-08-05
How do you change the ownership of a table in a database to dbo using the SQL Server Enterprise Manager?
0
Comment
Question by:asaworker
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
Otana earned 2000 total points
ID: 18889816
I don't think you can. You'll have to run this stored procedure from Query Analyzer:
sp_changeobjectowner 'objectname','newowner'
0
 

Author Comment

by:asaworker
ID: 18889840
so my query would be sp_changeobjectowner 'course_category','dbo'
0
 

Author Comment

by:asaworker
ID: 18890186
EXEC('sp_changeobjectowner @objname = ''myname.course_category'', @newowner = dbo')

That fixed it! Thanks for your help!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

590 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question