Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when trying to create new Login user for SQL 2012

Tags:

sql-server

I'm trying to follow the procedures described in this link here but if I enter IIS APPPOOL\AppPoolName as the login name (as in step 3) it throws an error saying that it is not a valid name because it contains invalid characters. I'm using SSMS for SQL 2012.

UPDATE: Just to clarify: The "Invalid character" error was b/c I was trying to enter the user on "SQL Server Authentication" when it must be "Windows Authentication".

like image 241
Ben Junior Avatar asked Jan 28 '26 17:01

Ben Junior


2 Answers

I had the same problem when creating a Windows domain user in SSMS.

This solved it:

https://social.msdn.microsoft.com/Forums/en-US/8f084029-b0cf-4e7d-bb07-a11e31363660/tsd03072-xxxxxxx-is-not-a-valid-name-because-it-contains-invalid-characters?forum=vstsdb

Synopsis: The error message is misleading, the error case is that the for the situation where you have a Windows login and the (userName != loginName). The code does not take casing into consideration right now, so they have to be an exact match.

like image 188
Onur Avatar answered Jan 30 '26 11:01

Onur


Ben answered his own question:

UPDATE: Just to clarify: The "Invalid character" error was b/c I was trying to enter the user on "SQL Server Authentication" when it must be "Windows Authentication".

like image 28
Dunc Avatar answered Jan 30 '26 10:01

Dunc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!