Re: Steps to rename a user in SQL Server 2000
- From: "Andrew J. Kelly" <sqlmvpnooospam@xxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 19:44:00 -0400
Personally I don't know of a way to do it in 2000 only 2005 without creating a new one. Maybe this is a good time to upgrade:).
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
"KnightFall1" <KnightFall1@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:3759A87E-7603-49A7-863B-195D279C6529@xxxxxxxxxxxxxxxx
Hi Andrew,
I only mentioned the comment about mapping the login to another user since
that was mentioned in the BOL example along with the sp_change_users_login
stored procedure.
I'm mainly curious if it possible to just rename a SQL account in SQL 2000.
Is it possible OR does a new login always have to be created if you want the
login to be different?
"Andrew J. Kelly" wrote:
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?
>
>
.
- References:
- Steps to rename a user in SQL Server 2000
- From: KnightFall1
- Re: Steps to rename a user in SQL Server 2000
- From: Andrew J. Kelly
- Re: Steps to rename a user in SQL Server 2000
- From: KnightFall1
- Steps to rename a user in SQL Server 2000
- Prev by Date: Re: 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: Re: 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
|
|