Avatar of Mandeep Singh
Mandeep Singh
Flag for India asked on

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)

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.
Microsoft SQL Server 2008Microsoft SQL Server

Avatar of undefined
Last Comment
Mandeep Singh

8/22/2022 - Mon
teebon

Hi Mandeep,

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

ASKER
sq server managment studio and i am seeing this in sql server log.
teebon

Hi Mandeep,

You are connecting locally? Any other users accessing this SQL Server?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Mandeep Singh

ASKER
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ão

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 Singh

ASKER
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.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Vitor Montalvão

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.
ASKER CERTIFIED SOLUTION
Mandeep Singh

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Mandeep Singh

ASKER
none