OLE DB provider for SQL Server, Connection Failure

Good morning expert,

Classic ASP written in VB6 connects to SQL Server 2000 database. We use this environ for test
but next week will be used for VIP presentation so must get it to work. When we go to a page that hits the database we get:
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed. ....
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80004005)
Connection failure
/wtemsc/EnterDetail.asp, line 36
The really wierd thing about it is if we click the refresh button on the browser the page
comes up normal.
I know the ASP error message are notorious for being red herrings but they are consistent
The page EnterDetail fails at line 36 which is
vntDetails = objEmployee.RetrieveEmployeeDetails(Session("intDB"),Session ("strEmployeeNumber"),1)
The page SelectCompany fails at line 56 which is
vntList = objTimeEntry.RetrieveCompanies (Session("intDB"),Session ("lngLoginID"))
The page ViewSelectEmployee fails at line 74 which is
vntList = objTimeEntry.RetrieveCostCenterTimeCards (Session("intDB"),Session ("lngLoginID"), Session ("strPlantNumber"), Session ("EndDate"), Session ("strCompany"))

I have tried everything I can think of and can't figure what causes this. The question  is two fold
1. Is the obvious, what causes this. If there is no idea about the cause
2. Any ideas on how to troublshoot.

Thanks

Allen in Dallas
Allen PittsBusiness analystAsked:
Who is Participating?
 
James MurrellConnect With a Mentor Product SpecialistCommented:
have you read http://tutorials.aspfaq.com/8000xxxxx-errors/80004005-errors.html it has help me many times with this problem
0
 
Allen PittsBusiness analystAuthor Commented:
Not much of a solution but no else answered so I guess I am stuck with it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.