A.M.,
It has been a while since I did this, back on SQL Server 2000. I don't
believe there is a command in SQL Server 2000, so I probably did something
very illegal like update the system table. (Impossible in SQL Server 2005
and not really a good idea in SQL Server 2000.)
In SQL Server 2005, you can ALTER LOGIN [loginname] WITH NAME=[newname].
This will work if the SID for the new name is the same as the SID for the
old name. (Which is your case.) However, this does not rename the users in
the database, so you must also run ALTER USER [username] WITH NAME =
[newusername] for each database where the login is a user.
If you want it to be really clean, you might prefer to script out all the
rights to the login and users then drop the old users and logins. After
that recreate the new new login and regrant the rights. To find role
memberships of a login you may:
exec sp_helplogin [loginname]
However, rights granted directly to a login (something I rarely do) have to
be found in each database, perhaps by using:
exec sp_helprotect @username=username
In SQL Server 2005 there are some new views, but that won't help you with
SQL Server 2000.
RLF
> Hi,
>
[quoted text clipped - 8 lines]
>
> Thanks