Solved

DBO Ownership change MSSQL Enterprise Manager

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

785 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