Re: Steps to rename a user in SQL Server 2000
- From: "Andrew J. Kelly" <sqlmvpnooospam@xxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 16:35:13 -0400
What do you mean by map an existing login to a new account? Logins are at the server level and users are at the db level. SQL Logins are not mapped to any account they are just Logins. The Logins is mapped to one or more Users. sp_change_users fixes the mapping between Logins and Users. If you want to change a Login from Login1 to Login2 I believe you will need to create a new one and map all the users to that new Login. But I must be missing something as I don't see why you would want to do that. Can you give more details?
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
"KnightFall1" <KnightFall1@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:2C35083F-4471-46C0-A573-C34DD99BA15E@xxxxxxxxxxxxxxxx
I have what is hopefully a simple question.
I have a SQL 2000 Enterprise server with SP4. I want to be able to rename an
existing SQL account to something else.
I see that there is a sp_change_users_login stored procedure which initially
looked promising but based on the 3 examples shown in Books Online this
stored procedure will not work. Unlike the examples that BOL gives, I'm not
trying to create a new login and then map an existing login to a new account.
Since I'm running SQL 2000 and not SQL 2005, I can't use the ALTER LOGIN
command.
I just want to rename the SQL login account from "User1" to "User2"
(password stays the same).
How do I do that?
.
- Follow-Ups:
- Re: Steps to rename a user in SQL Server 2000
- From: KnightFall1
- Re: Steps to rename a user in SQL Server 2000
- References:
- Steps to rename a user in SQL Server 2000
- From: KnightFall1
- Steps to rename a user in SQL Server 2000
- Prev by Date: Steps to rename a user in SQL Server 2000
- Next by Date: Re: Steps to rename a user in SQL Server 2000
- Previous by thread: Steps to rename a user in SQL Server 2000
- Next by thread: Re: Steps to rename a user in SQL Server 2000
- Index(es):
Relevant Pages
|
|