Skip to main content
Solved

Can anyone help me with double backslash in domain username

  • September 16, 2019
  • 4 replies
  • 752 views

Forum|alt.badge.img+7
When I want to start my application as a domain user, I get the following message
"Cannot open database "..._IAM" requested by the login. The login failed.
Login failed for user 'DOMAIN\\user'."

All the domain users work properly, only the users that has been set on "disabled" and later set back to "enabled" have the double backslashes.
When I start SSMS i can normally logon to the databases.

windows2012R2
SQL2008R2

Can anyone help me on this?
Thanks in advance

Best answer by Marco Kleiweg

Adding a backslash to the names was no option. That's why I took a more radical way if refreshing the properties. I deleted the logins and created them again.
This solved the problem.
Thanks for helping.
View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

4 replies

Henk Nicolai
Moderator
Forum|alt.badge.img+1
  • Moderator
  • 55 replies
  • September 17, 2019
Hi Marco, could you somehow add a screenshot of the error message? This may help with the analysis. Thanks in advance.

Forum|alt.badge.img+7
  • Author
  • Sidekick
  • 30 replies
  • September 17, 2019
H

ereby a screenshot. It's all I can offer you.
I hope you can help me and my client.

Henk Nicolai
Moderator
Forum|alt.badge.img+1
  • Moderator
  • 55 replies
  • September 17, 2019
Hmm... what happens internally is that the Windows GUI uses the authentication method only for the connection string, like in this example:

Data Source=myserver;Initial Catalog=MY_DATABASE;Integrated Security=True;Pooling=True;MultipleActiveResultSets=False;Application Name="Thinkwise Software Factory";Current Language=English

I don't know how SQL server handles this exactly, but if I look at Security -> Logins in SQL Server Management Studio all domain names there have one backslash only. Is it possible to change the login name of affected users by adding a backslash, or somehow refresh their properties? And would that fix the problem?

Forum|alt.badge.img+7
  • Author
  • Sidekick
  • 30 replies
  • Answer
  • September 18, 2019
Adding a backslash to the names was no option. That's why I took a more radical way if refreshing the properties. I deleted the logins and created them again.
This solved the problem.
Thanks for helping.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings