Solved

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

Posted on 2008-06-09
7
187 Views
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.
0
Comment
Question by:mphillip85
  • 3
  • 3
7 Comments
 
LVL 75

Expert Comment

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

Author Comment

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

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
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:mphillip85
ID: 21746296
connection from what I can tell.

thanks
0
 
LVL 142

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
...
0
 

Author Comment

by:mphillip85
ID: 21746410
all the above are ok.  

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

thanks
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 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?
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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…

825 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