countrymeister
asked on
windows NT login and sql login
I had to create new windows NT logins , so I created an account with the following execTestReportAdmin, and requested that I can access a database dbActivity
Then I requested that this user name be renamed as it was too long and was causing problem in storing this value in one of the tables
So the nT group renamed it to exeRptAdm, but now when I log in to SQL Server, using this account and do
select user
I see the old login execTestReportAdmin
Can you please what needs to be done, because I need to see exeRptAdm
Then I requested that this user name be renamed as it was too long and was causing problem in storing this value in one of the tables
So the nT group renamed it to exeRptAdm, but now when I log in to SQL Server, using this account and do
select user
I see the old login execTestReportAdmin
Can you please what needs to be done, because I need to see exeRptAdm
ASKER
I have an acoubnt in the db as execTestReportAdmin, I want to change this to exeRptAdm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ALTER USER [execTestReportAdmin]
WITH
NAME = exeRptAdm
as always, do a backup of the DB before you run any code you dont fully understand. If applicable, run in a test scenario first!
/Marten