We help IT Professionals succeed at work.

SQL Server Connection Error- Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft SQL Server, Error: -2)

1,532 Views
Last Modified: 2014-12-15
HI,

I am facing an issue on SQL Server, i am getting this error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft SQL Server, Error: -2). But error is not coming everytime i connect. It gives me error sometime.

I have enabled all services added exception on firewall, disabled firewall.
Os is windows server 2008 r2, and SQL server 2208 r2 is database.

Server gives me following error:

Error: 18456, Severity: 14, State: 8.

Error: 18456, Severity: 14, State: 5.: Login failed for user 'sa'. Reason: Password did not match that for the login provided.
Comment
Watch Question

teebonTechnology Manager
CERTIFIED EXPERT

Commented:
Hi Mandeep,

Where did you receive this error, in an application connecting to SQL Server or from SQL Server Management Studio?
Mandeep SinghDatabase Administrator

Author

Commented:
sq server managment studio and i am seeing this in sql server log.
teebonTechnology Manager
CERTIFIED EXPERT

Commented:
Hi Mandeep,

You are connecting locally? Any other users accessing this SQL Server?
Mandeep SinghDatabase Administrator

Author

Commented:
i am connecting it through locally & remotely. It gives error on both.

also what i see is when i try to connect using IP, its throws error, but by . it works fine.
Vitor MontalvãoIT Engineer
CERTIFIED EXPERT
Distinguished Expert 2017

Commented:
Sounds like you didn't set the SPN for that SQL Server instance.
I wrote an article in my blog about that. Check if it can help you.
Mandeep SinghDatabase Administrator

Author

Commented:
Hi Vitor,

this is default instance and single instance on that machine, then so SPN helps me. What i understand about SPN is :  client uniquely identifies an instance of a service. If you install multiple instances of a service on computers throughout a forest, each instance must have its own SPN.
Vitor MontalvãoIT Engineer
CERTIFIED EXPERT
Distinguished Expert 2017

Commented:
If you install multiple instances of a service on computers throughout a forest, each instance must have its own SPN.
That's right. Check the SPN and if not exist just create it. Should work after.
Database Administrator
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Mandeep SinghDatabase Administrator

Author

Commented:
none
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.