Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
Security
»
Change the DBO login
Change the DBO login
Rate Topic
Display Mode
Topic Options
Author
Message
Emilio.Mendoza
Emilio.Mendoza
Posted Wednesday, September 10, 2008 12:09 PM
Forum Newbie
Group: General Forum Members
Last Login: Friday, September 18, 2009 12:42 PM
Points: 8,
Visits: 58
I need to change in a user database, the logn for the user DBO.
The requirement is to remove the actual SQL login for the NT Authority\Network Service login.
Is there a way to accomplish this?
Your help is very appreciate in this matter
Post #567184
nary
nary
Posted Wednesday, September 10, 2008 12:16 PM
SSCommitted
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:19 AM
Points: 1,625,
Visits: 1,313
USE Databasename
GO
Exec sp_changedbowner 'new login name'
Post #567189
ALZDBA
ALZDBA
Posted Wednesday, September 10, 2008 12:16 PM
SSCertifiable
Group: General Forum Members
Last Login: 2 days ago @ 6:25 AM
Points: 6,861,
Visits: 8,045
e.g.
This one will map sqlaccount sa to the dbo user of your db.
Check BOL
exec sp_changedbowner 'sa', true
Johan
Jul 13
Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere
-
How to post Performance Problems
-
How to post data/code to get the best help
-
How to prevent a sore throat after hours of presenting ppt ?
"press F1 for solution", "press
shift
+F1 for urgent solution"
Need a bit of Powershell? How about
this
Who am I ?
Sometimes this is me
but
most of the time this is me
Post #567190
Emilio.Mendoza
Emilio.Mendoza
Posted Wednesday, September 10, 2008 2:30 PM
Forum Newbie
Group: General Forum Members
Last Login: Friday, September 18, 2009 12:42 PM
Points: 8,
Visits: 58
Thanks for the reply I've already use those options, probably I didn't explain myself correctly, I need to have the DBO name and the login 'NT AUTHORITY\NETWORK SERVICE' I have read smoe post where they say this can't be done, but I already checked some DB that shows exactly that.
SO it is possible but how can you do that to show in the NAME column DBO and the Login of the DB 'NT AUTHORITY\NETWOK SERVICE'?
Thanks for the help
Post #567305
Emilio.Mendoza
Emilio.Mendoza
Posted Wednesday, September 10, 2008 3:01 PM
Forum Newbie
Group: General Forum Members
Last Login: Friday, September 18, 2009 12:42 PM
Points: 8,
Visits: 58
Emilio.Mendoza (9/10/2008)
Thanks for the reply I've already use those options, probably I didn't explain myself correctly, I need to have the DBO name and the login 'NT AUTHORITY\NETWORK SERVICE' I have read smoe post where they say this can't be done, but I already checked some DB that shows exactly that.
SO it is possible but how can you do that to show in the NAME column DBO and the Login of the DB 'NT AUTHORITY\NETWOK SERVICE'?
I tried the sp_changedbowner
Also sp_change_users_login
Thanks for the help
Post #567322
ALZDBA
ALZDBA
Posted Thursday, September 11, 2008 1:53 AM
SSCertifiable
Group: General Forum Members
Last Login: 2 days ago @ 6:25 AM
Points: 6,861,
Visits: 8,045
Emilio.Mendoza (9/10/2008)
Thanks for the reply I've already use those options, probably I didn't explain myself correctly, I need to have the DBO name and the login 'NT AUTHORITY\NETWORK SERVICE' I have read smoe post where they say this can't be done, but I already checked some DB that shows exactly that.
SO it is possible but how can you do that to show in the NAME column DBO and the Login of the DB 'NT AUTHORITY\NETWOK SERVICE'?
Thanks for the help
I don't think so.
What's the actual need to have specifically 'NT AUTHORITY\NETWOK SERVICE' ? (no one can log in as 'NT AUTHORITY\NETWOK SERVICE')
What would be the advantage ?
Why wouldn't 'sa' accomplish that ?
Johan
Jul 13
Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere
-
How to post Performance Problems
-
How to post data/code to get the best help
-
How to prevent a sore throat after hours of presenting ppt ?
"press F1 for solution", "press
shift
+F1 for urgent solution"
Need a bit of Powershell? How about
this
Who am I ?
Sometimes this is me
but
most of the time this is me
Post #567527
Emilio.Mendoza
Emilio.Mendoza
Posted Wednesday, October 08, 2008 9:49 AM
Forum Newbie
Group: General Forum Members
Last Login: Friday, September 18, 2009 12:42 PM
Points: 8,
Visits: 58
Well It is the client requirements since is for Sharepoint site or something like that and since they have it in that way in the other DB, is just the way they want it!
I already set it up with another user they have for test since the purpose was to use this login to remove the old login which was for a person who already left the company, so for 'security' reasons they want to have that login in that user...
but I just want to know how they did in the other databases?
Post #582719
vgullotta
vgullotta
Posted Tuesday, March 10, 2009 2:21 PM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, March 10, 2009 2:51 PM
Points: 1,
Visits: 1
I am attempting to change a dbo login name and can't figure out how. Let me explain a little so you get what I am looking for.
This dbo login name is: ;test
I need to edit it to be: test
The reason for this is that I don't want to change the password on this login name, I just want to edit the username. It is basically because when we disable a user, our disable script or something like that changes it to ';username' from 'username'. Now I need to enable this login by simply renaming the login, but I don't know how to do it. Any suggestions?
Thanks in advance,
Vinny
Bite off more than you can chew. THEN CHEW IT!
Post #672781
K. Brian Kelley
K. Brian Kelley
Posted Tuesday, March 10, 2009 2:38 PM
Keeper of the Duck
Group: Moderators
Last Login: Wednesday, May 08, 2013 5:14 AM
Points: 6,583,
Visits: 1,787
vgullotta (3/10/2009)
I am attempting to change a dbo login name and can't figure out how. Let me explain a little so you get what I am looking for.
This dbo login name is: ;test
I need to edit it to be: test
The reason for this is that I don't want to change the password on this login name, I just want to edit the username. It is basically because when we disable a user, our disable script or something like that changes it to ';username' from 'username'. Now I need to enable this login by simply renaming the login, but I don't know how to do it. Any suggestions?
Thanks in advance,
If it's 2000, you'll need to delete and recreate. You can use sp_revlogin to dump the login with the encrypted password and SID and then modify the EXEC sp_addlogin to use the correct name.
How to transfer logins and passwords between instances of SQL Server
K. Brian Kelley, CISA, MCSE, Security+, MVP - SQL Server
Regular Columnist (Security), SQLServerCentral.com
Author of
Introduction to SQL Server: Basic Skills for Any SQL Server User
|
Professional Development blog
|
Technical Blog
|
LinkedIn
|
Twitter
Post #672797
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.