x
login about faq Site discussion (meta-askssc)

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.

more ▼

asked Oct 31 '11 at 05:04 AM in Default

pits gravatar image

pits
830 43 76 83

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Oct 31 '11 at 05:24 AM

Blackhawk-17 gravatar image

Blackhawk-17
10.5k 23 29 34

(comments are locked)
10|1200 characters needed characters left

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.

more ▼

answered Oct 31 '11 at 05:30 AM

Rob Farley gravatar image

Rob Farley
5.7k 13 17 19

thank you Rob,how i can check connection string?...can you please let me know the steps...thanks

Oct 31 '11 at 05:36 AM pits

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.

Oct 31 '11 at 05:43 AM Rob Farley

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...

Nov 01 '11 at 05:25 AM pits

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.

Nov 01 '11 at 06:24 AM Usman Butt
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x50
x6

asked: Oct 31 '11 at 05:04 AM

Seen: 386 times

Last Updated: Oct 31 '11 at 05:07 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.