Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


how to creat a database with dbo user name and sa login name?

Posted on 2003-03-25
Medium Priority
Last Modified: 2008-02-01
I creat a databse. in users window is one user.
name: dbo login name: <none>
how to change login name to sa?
Question by:Ali HND
LVL 43

Accepted Solution

Eugene Z earned 100 total points
ID: 8202593
use stored proc - sp_changedbowner

Assisted Solution

dhamijap earned 100 total points
ID: 8203640
Only members of the sysadmin fixed server role or the owner of the current database can execute sp_changedbowner

USE 'yourdatabasename'
EXEC sp_changedbowner 'sa'

Expert Comment

ID: 9275540
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
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 INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

564 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