Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Change dbo login on sql 2008

Posted on 2014-10-21
2
Medium Priority
?
266 Views
Last Modified: 2014-10-21
I am runnign sql 2008 sp3.

The dbo user on the database Test2 has a login of mycompany\user2 and I need user2 to have its own login.

How do I change dbo's login to sa so I can have a login for user2?
0
Comment
Question by:jimmylew52
2 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 2000 total points
ID: 40395215
If you are asking how you set the sa user to be the owner of the database, then that would be:
ALTER AUTHORIZATION ON DATABASE::Test2 TO sa
0
 
LVL 1

Author Comment

by:jimmylew52
ID: 40395257
That has accomplished what I want. Thank yo.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

971 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