Solved

Login failed for user ".  The user is not associated with a trusted SQL Server connection

Posted on 2010-11-29
5
398 Views
Last Modified: 2012-05-10
There are two servers:  db1 and db2.  They are remote to us and I'm sure a firewall is involved.  They also use a domain and windows authentication for us to connect to.  We also have an account that the web server uses, we can also try to connect with (username/password).  Several of us users are able to connect and work normally with db2.  However, all of us are having connection issues with db1.  

It's intermittent, though:

Sometimes I can connect to db1 and run a query (using Windows Authentication), or use the SQL Server Management Studio and explore the databases, but other times it hangs and I get the error (in the title).  It may switch within seconds.  When it does retrieve data, it is fast and doesn't skip like it would with packet loss.  (I do not believe packet loss is the issue here.)

To db1, I can never connect using the username/password, however the web server always can.  I can always connect both ways to db2 without issue.

The database administrator verifies that other people are able to connect OK, and that our accounts are not blocked or locked.  He can see in the logs where we attempt to connect (by our IP).  He says it does not appear to be anything on his end.  We think there is nothing that is on our end (since we can connect to db2 just fine, which is essentially in the same location).

What could be causing this?  Some closed obscure port on a firewall?
0
Comment
Question by:InkEye
  • 3
  • 2
5 Comments
 
LVL 45

Expert Comment

by:Vitor Montalvão
ID: 34237780
There's a similar question with solution. Check if it applies to your problem:
http://www.experts-exchange.com/Database/Miscellaneous/Q_21868099.html

Good luck
0
 

Author Comment

by:InkEye
ID: 34238953
I think his situation is somewhat different:  In our case, there are other users in other remote locations that apparently are connecting without issue.  In my case, I can connect only sometimes, and even after I have connected it may randomly perform functions/queries (or not).

Yet, on the other server, it always works fine.

The thinking is that perhaps the firewall at their end has blocked a range of ports for the first db server, but not all the ports.  Thus, depending on what ports are available, I am able to connect.  But this doesn't explain everything.
0
 

Accepted Solution

by:
InkEye earned 0 total points
ID: 34276461
The answer became somewhat clear(er).  After ruling out any firewall issues, the DBA was able to duplicate the problem.  After a hard reboot (which was not a simple matter), the problem was apparently solved.  However, the next day, the 2nd database server (which was fine) was now experiencing the problem.  After close examination, it was discovered that several services had not started.  (I don't know which ones, but possibly something having to do with a domain controller might have been involved.)  DBA started the necessary services, and everything works fine.
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
ID: 34282182
That's great :)

Cheers
0
 

Author Closing Comment

by:InkEye
ID: 34308624
I really had nothing to do with the solution, though.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now