Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change dbo

Status
Not open for further replies.

jvande

MIS
Joined
Jun 6, 2001
Messages
115
Location
US
How do I change the dbo. I have it associated with the wrong login name?

Thanks,
Josh
 
Which version of SQL server are you running and how did you associate the wrong user with DBO?

In SQL 7 and SQL 2000, you can use the system stored procedure "sp_changedbowner" to change the database owner. The following example comes from SQL BOL.

This example makes the user Albert the owner of the current database and maps existing aliases to the old database owner to Albert.

EXEC sp_changedbowner 'Albert'
Terry L. Broadbent
Programming and Computing Resources
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top