Solved

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

Posted on 2010-11-29
5
406 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 47

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 47

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 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