x

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, 2011 at 05:04 AM in Default

pits gravatar image

pits
830 80 91 92

(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, 2011 at 05:24 AM

Blackhawk-17 gravatar image

Blackhawk-17
11.9k 28 31 36

(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, 2011 at 05:30 AM

Rob Farley gravatar image

Rob Farley
5.7k 15 18 20

thank you Rob,how i can check connection string?...can you please let me know the steps...thanks
Oct 31, 2011 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, 2011 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, 2011 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, 2011 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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

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

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x57
x7

asked: Oct 31, 2011 at 05:04 AM

Seen: 818 times

Last Updated: Oct 31, 2011 at 05:07 AM