question

pits avatar image
pits asked

login failed

Hello, Noticed below error message in application logs for job failure,in sql 2008 Login failed for user Mali/carlos Reason :Failed to open the explicitly specified database. [CLIENT:XXXXXX] is this somting authenticaiton error? please advise. rgds.
errormessage
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Blackhawk-17 avatar image
Blackhawk-17 answered
Generally it means that either the default database defined for the login does not exist or they do not have permissions to use their default dB.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Rob Farley avatar image
Rob Farley answered
If it's an explicitly specified database, check the connection string to see which database you're trying to connect to. Then make sure the login is mapped to a user in that database. It could well be that they had once been granted access using the guest user, but that this user has since been disabled.
4 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

pits avatar image pits commented ·
thank you Rob,how i can check connection string?...can you please let me know the steps...thanks
0 Likes 0 ·
Rob Farley avatar image Rob Farley commented ·
Unfortunately the ConnectionString itself isn't available through a SQLTrace, but you should be able to see the ApplicationName, and hopefully work out which application it is. Then have a look at how that Application is connecting to see what you can do.
0 Likes 0 ·
pits avatar image pits commented ·
thank you Rob,but I am not able to get you quote"but you should be able to see the ApplicationName, and hopefully work out which application it is. Then have a look at how that Application is connecting to see what you can do. "unquote.where and how i can do that...i have not done this in the past...
0 Likes 0 ·
Usman Butt avatar image Usman Butt commented ·
it depends upon your development environment. e.g. For ASP.net that would be in web.config file. So please pass on as much detail as you can.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.