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

x
?
Solved

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

Posted on 2003-03-25
4
Medium Priority
?
410 Views
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?
0
Comment
Question by:Ali HND
3 Comments
 
LVL 43

Accepted Solution

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

Assisted Solution

by:dhamijap
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'
GO
EXEC sp_changedbowner 'sa'
0
 

Expert Comment

by:CleanupPing
ID: 9275540
a_hnd:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

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