Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7406435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:33:26+00:00 2026-05-29T05:33:26+00:00

We are experiencing the same error as this StackOverflow Q … System.Data.SqlClient.SqlException (0x80131904): A

  • 0

We are experiencing the same error as this StackOverflow Q …

System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
   at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.SqlClient.SqlConnection.Open()
   at System.Data.Linq.SqlClient.SqlConnectionManager.UseConnection(IConnectionUser user)
   at System.Data.Linq.SqlClient.SqlProvider.get_IsSqlCe()
   at System.Data.Linq.SqlClient.SqlProvider.InitializeProviderMode()
   at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)

… except that in the referenced StackOverflow Q, they need to restart SQL Server once the error occurs – and we do not. We’ll get this error once a day, or once every few days – and all is fine after the error occurs, until the next time it occurs.

This makes us think it’s not a “forgot to close connections” issue. We have a moderately busy ASP.NET 4.0 WebForms / SQL Server 2008 R2 app; but we’re quite positive we’re not exceeding the max # of database connections.

Any thoughts on this problem, or an approach to diagnose?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:33:27+00:00Added an answer on May 29, 2026 at 5:33 am

    Thought I would comment on our progress with this.

    While none of the SQL Server documentation/articles/blogs mention that this error can be caused by server busyness, I found a forum posting where some seasoned IT pro named Matt Neerincx states that it can be, as follows:

    Possible reasons for this error include:
    
    1. Poor network link from client to server.
    
    2. Server is very busy (meaning high CPU) and cannot respond to new connection attempts.
    
    3. Server is running out of memory (so high memory usage for SQL).
    
    4. tcp-ip layer on client is over-saturated with connection attempts so tcp-ip layer rejects the connection.
    
    5. tcp-ip layer on server side is over-staturated with connection attempts and so tcp-ip layer is rejecting new connections.
    
    6. With SQL 2005 SP2 and later there could be a custom login trigger that rejects your connection.
    
    You can increase the connect timeout to potentially alleviate issues #2, #3, #4, #5.  Setting a longer connect timeout means the driver will try longer to connect and may eventually succeed.
    
    To determine the root cause of these intermittent failures is not super easy to do unfortunately.  What I normally do is start by examining the server environment, is the server constantly running in high CPU for example, this points to #2.  Is the server using a hugh amount of memory, this points to #3.   You can run SQL Profiler to monitor logins and look for patterns of logins, perhaps every morning at 9AM there is a flurry of connections etc...
    

    So we are presently walking down this path – reducing the # of queries that execute at the same time in some of our batch queries, optimizing some of our queries, etc.

    Also, in our app connection string, we increased the connection timeout, and set Min Pool Size to 20 (thinking it’s good to try to ensure some existing, unused connections for the app to grab, rather than needing to establish a new connection).

    At this moment, it’s been almost 48 hours without receiving the error; making us very hopeful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm experiencing the same problem in this previous stackoverflow.com post . Specifically, I seem
I'm experiencing a difficult ajax error in IE9. I will say up-front that this
Recently two users of our software from the same company started experiencing random closures
I am experiencing a strange compiler error with extension methods. I have an assembly
Experiencing jquery in rails through .js.erb templates; but completely puzzled by a simple problem
After experiencing numerous problems with a certain media player, it got me thinking is
When experiencing networking problems on client machines, I'd like to be able to run
I'm experiencing an issue on a test machine running Red Hat Linux (kernel version
I'm experiencing what I believe is a circular dependency issue with my PHP application.
I'm experiencing an issue with ActiveMQ and would like to trace/view all ActiveMQ activity.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.