scripter73
Programmer
Hi,
I have an ASP script that does some text file manipulation and then opens an Access database to write the data to a table, and then later it opens the same database to write to another table.
Here's the code for the first table write:
'********************************************************
'OPEN DATABASE CONNECTION - write data to database
'********************************************************
'create connection to database using dsn
dim adopenforwardonly, adlockreadonly, adcmdtable
adopenforwardonly = 0
adlockreadonly = 1
adcmdtable = 2
dim objconn, objrs
set objconn = server.createobject("ADODB.Connection"
set objrs = server.createobject("ADODB.Recordset"
'line 461
dim strdatabasetype
strdatabasetype = "Access"
'6/27/01 adding commands
MdbFilePath = Server.MapPath("TargetURL.mdb"
objconn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";" (line 468)
objrs.open "Alog", objconn, adopenforwardonly, adlockreadonly, adcmdtable
'add new record
'check to make sure file data to upload is from CONNECT or DOMINO log file
if (strcomp(filechars, "NC" = 0) OR (strcomp(filechars, "AC"=0) then
strSQL = "INSERT INTO Alog (Host_Addr, UserID, LogDate, LogTime, LogRequest, RefURL, OpSysURL) VALUES ('" & _
strHost &"'," & "'" & strUser & "'," & "'" & datDate &"','" & strFinalTime & "','" & strRequest & "'," & "'" & strRefURL & "'," & "'" & strOpSys & "')"
objConn.Execute strSQL
end if
The error I'm getting is:
Microsoft OLE DB Provider for ODBC Drivers error 80004005
[Microsoft][ODBC Microsoft Access 97 Driver] Too many client tasks.
/logs/split.asp, line 468
Can somebody tell me what's going on? Access will allow about 63 records and then just shuts down business. I've been working on these error types for about 3 weeks and its becoming frustrating.
Any help is appreciated.
Thanks,
scripter73
I have an ASP script that does some text file manipulation and then opens an Access database to write the data to a table, and then later it opens the same database to write to another table.
Here's the code for the first table write:
'********************************************************
'OPEN DATABASE CONNECTION - write data to database
'********************************************************
'create connection to database using dsn
dim adopenforwardonly, adlockreadonly, adcmdtable
adopenforwardonly = 0
adlockreadonly = 1
adcmdtable = 2
dim objconn, objrs
set objconn = server.createobject("ADODB.Connection"
set objrs = server.createobject("ADODB.Recordset"
'line 461
dim strdatabasetype
strdatabasetype = "Access"
'6/27/01 adding commands
MdbFilePath = Server.MapPath("TargetURL.mdb"
objconn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";" (line 468)
objrs.open "Alog", objconn, adopenforwardonly, adlockreadonly, adcmdtable
'add new record
'check to make sure file data to upload is from CONNECT or DOMINO log file
if (strcomp(filechars, "NC" = 0) OR (strcomp(filechars, "AC"=0) then
strSQL = "INSERT INTO Alog (Host_Addr, UserID, LogDate, LogTime, LogRequest, RefURL, OpSysURL) VALUES ('" & _
strHost &"'," & "'" & strUser & "'," & "'" & datDate &"','" & strFinalTime & "','" & strRequest & "'," & "'" & strRefURL & "'," & "'" & strOpSys & "')"
objConn.Execute strSQL
end if
The error I'm getting is:
Microsoft OLE DB Provider for ODBC Drivers error 80004005
[Microsoft][ODBC Microsoft Access 97 Driver] Too many client tasks.
/logs/split.asp, line 468
Can somebody tell me what's going on? Access will allow about 63 records and then just shuts down business. I've been working on these error types for about 3 weeks and its becoming frustrating.
Any help is appreciated.
Thanks,
scripter73