SServer PC: Win SBS 2003 with 2.6 GHz processor and 1GB RAM
SQL Server 2000 v 2000.8.00.76 (sp3)
MS Office 2k3
MSJet ms04-014 (latest ost sp8)
MDAC v2.8 RTM
ADO 2.1
vb6.exe / ADO 2.0
I think this is a SQL Server/ADO problem as I have 2 applications with
same problem.
My access database uses a timer based function to insert records into
SQL Server using ADO and stored procedures. Access also uses DAO ,
Jet/ odbc to linked tables on SQL Server for many other tasks/forms.
All is well when Access 1st run but after a few hours or so the Access
app grinds to a halt.
Upon checking the task manager the mem usuage upto 160MB and handle
count upto 86,000 ! (cpu process % is low).
After the "Access Fail" if I stop/start access only, performance is
not returned, I have to stop/start SQL Server.It would seem that all
connections from this PC to SQL server are badly affected, it is not
tied to the client application that had the problem.
As I could not work out where the problem was I took the Access
functionality into a VB6 app, using ADO 2.0, thinking this should
simplify matters with Jet and ODBC out of the way.
I now have the same problem with the number of handles increasing with
every new timer based function.
\* code snippet example *\
If Not OpenConnection Then 'we have not been able to open a
connection to SQL server
Call procLog("Connection failed to SQL server")
Exit Function
End If
'gVar.cnnSQL is my public ADODB.Connection
Set cmdSQL = New ADODB.Command
With cmdSQL
.ActiveConnection = gVar.cnnSQL
.CommandText = "MyDB.dbo.insert_tblMyData"
.CommandType = adCmdStoredProc
.Execute RecordsAffected:=lngRecs, _
Parameters:=Array(lngID, dtDate,intCategory,
strNationality,strNotes,strName)
End With
\* code snippet *\
** After the "Access Fail" if I look at one of my clients, running the
same Access app on another PC, it seems normally responsive when using
one my bound forms to browse the data from same SQL Server **
Any ideas anyone ?