Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DBO Ownership change MSSQL Enterprise Manager

Posted on 2007-04-11
3
Medium Priority
?
846 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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 the fundamental information of how to create a table.

730 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