I'm trying to create a new user for my MSSQL database through the
Enterprise Manager. In the SQL Server Login Properties dialog box, I
type in for Name: "Ken", I choose SQL Server Authentication (Windows
Authentication won't work) and type in my password. For the default
Database, I choose "KenJackson" and then in Database Access, I check
off the Permit box next to where 'KenJackson' is listed. I click OK and
I'm asked to confirm my password. Then, the dialog box doesn't close
but I can see the Ken user listed with the rest of the logins, and then
I get the following message: Error 21002: [SQL-DMO]User 'Ken' already
exists. If I click OK on the error message and Cancel in the SQL Server
Login Properties dialog box, the Ken user is still listed, but when I
check the Database Access of that user, Permit isn't checked off. Does
anybody know what I'm doing wrong?
As a little bit of context, the reason I'm doing this is because when
my C#/ASP.NET application first calls SqlConnection.Open, it throws an
exception whose Message is "Cannot open database requested in login
'KenJackson'. Login fails.\r\nLogin failed for user 'Ken'." I don't
know too much about MSSQL, so I might not even be asking the right sort
of question.
Thanks.