Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 [Microsoft][ODBC SQL Server Driver]Timeout expired
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 05 January 2005 :  10:58:50  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I am having one hard time trying to figure this out... I have a website that is getting timeout errors at random. The wierd problem is that it is only going on with this one site. Other sites (but on different servers) have no problem's ever connecting to the SQL Server. I have added in the code to email me with the status of any SQL errors in all different sites accessing the same SQL Server and only get this error from one server. In my opinion it has to be a network issue but would like to try and figure it out so seeing what else I can do to find out if it is a network problem.

Should I set it up so it is always pinging the IP Address of the SQL Server to see if it's ever not able to ping the server then I know its a network issue instead of anything else?

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets

dayve
Forum Moderator

USA
5820 Posts

Posted - 05 January 2005 :  11:50:19  Show Profile  Visit dayve's Homepage
try adding a timeout parameter to see if the problem still occurs.

myconn=Server.CreateObject ("ADODB.connection")
myconn.ConnectionTimeout = 0
myconn.CommandTimeout = 0
myconn.open


Edited by - dayve on 05 January 2005 11:51:08
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 05 January 2005 :  12:33:01  Show Profile  Send ruirib a Yahoo! Message
Does that happen with a query that takes some time to be executed? What exactly are you doing when that happens?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 05 January 2005 :  15:58:00  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Is it on Windows Server 2003 and intermittent?

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 05 January 2005 :  19:49:11  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Windows 2000 and yes it is intermittent.. when I get to my other computer I can post all the times it has happened. I do not want to have to change the timeout but will just to get it to always work. Basically I think there has to be something on the network that is causing it to happen.

It is not a heavy query.. it could be on a page that usually takes .3 seconds to load and i know its not because the sql server is overwhelmed because other high traffic sites on other servers never have this problem

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 05 January 2005 :  20:39:57  Show Profile  Visit dayve's Homepage
DNS/DHCP issues perhaps?

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 05 January 2005 :  22:52:57  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
well im using the IP addrss of the SQL Server so I would think thats not it. I guess I am looking for a way to prove they are having network problems

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 05 January 2005 :  23:48:13  Show Profile  Visit dayve's Homepage
are you using an external address or an internal private address?

Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 06 January 2005 :  11:49:12  Show Profile
The MS suggested way of connectiing to a SQL server is not by IP, but by server name with a coresponding entry in the host file.

I don't believe that's the problem though. I'd guess network. If it's on the same network as the others, then maybe a faulty card/connection, some errant service spewing packets or a service trying to contact a dead IP and using up the sockets while waiting for an ACK.

KawiForums.com


Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 06 January 2005 :  11:50:16  Show Profile
Or, now that I think about it. Maybe just a good 'ole corrupted driver.

KawiForums.com


Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 06 January 2005 :  13:09:23  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
quote:
some errant service spewing packets or a service trying to contact a dead IP and using up the sockets while waiting for an ACK


That was my first thought. How would you identify this was the case? Would you check to see how many sockets were open and to where?

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 06 January 2005 :  13:17:55  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I am using a external IP Address. I put a server on a different class C to hopefully help on a few things I am doing but is all inside the same data center.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07