When I execute this SQL:
USE ASPState
GO
IF NOT EXISTS(SELECT * FROM sys.sysusers WHERE NAME = 'R2Server\AAOUser')
CREATE USER [R2Server\AAOUser] FOR LOGIN [R2Server\AAOUser];
GO
I get the following error:
The login already has an account under a different user name.
How do I know what this different user name is for my login account?
dbobeing displayed. Strange, I don't remember that I have use thedbofor my accountR2Server\AAOUser. Wondering what I should do next. – Jack Feb 22 '13 at 09:06aspnet_regsql -E -S .\MSSQLSERVER_R2 -ssaddto create theASPStatedatabase. I think probably, I am already set, even though, I even don't realize it in the first place. – Jack Feb 22 '13 at 09:18sys.server_principalsandsys.database_principals.sysusersandsysloginsare only there for backward compatibility. – Aaron Bertrand Feb 22 '13 at 14:23