I have a server timout when trying to conect to a sql server remotely from the internet via app

Posted on 2008-06-09
Medium Priority
Last Modified: 2010-03-19
I have an application that works locally but when I access the same url to access the database it times out.  What settings can I use or check to increase some timeouts.  I have had this problem before.
Question by:mphillip85
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 21746210
you need to check the query and tune it up accordingly

Author Comment

ID: 21746254
I am only able to modify the SQL server. not the code.  please bemore specific.  thanks.
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 21746256
is this on the connection or on running the query that the application times out?
please clarify
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.


Author Comment

ID: 21746296
connection from what I can tell.

LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 21746344
>connection from what I can tell.
you will need to be sure... adding error handler to give a clear message when exactly the error occurs...

now, if it's really the connection, did you check all the connection requirements?
* firewalls not blocking
* sql server allowing remote connection
* the login used is allowed
* if it's a non-windows login, are non-windows logins allowed in general

Author Comment

ID: 21746410
all the above are ok.  

remote timeout stttings? maybe?
or just a latency issue?

LVL 143

Accepted Solution

Guy Hengel [angelIII / a3] earned 2000 total points
ID: 21746467
the default connection timeout is 30 seconds...
which cannot be controlled "remotely" from the server, it's the application/connection string defining this.

now, 30 seconds is a long time, so instead of trying to solve the symptoms, get rid of the causes.
what is the connection string, btw?

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
I am showing a way to read/import the excel data in table using SQL server 2005... Suppose there is an Excel file "Book1" at location "C:\temp" with column "First Name" and "Last Name". Now to import this Excel data into the table, we will use…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

800 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