Solved

DBO Ownership change MSSQL Enterprise Manager

Posted on 2007-04-11
3
837 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 500 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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 to return specific rows and columns, with various degrees of sorting and limits in place.

623 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