I have an internal use web page that uses VBScript/ASP to perform a long sequence of INSERT and UPDATE transactions - all to the same table in SQL Server 2000.
The code executes as expected for the first 1900+ transactions, but then fails with the error message:
The failure is after approximately the same number of successful transaction every time, but not exactly. IE and FireFox exhibit the same behavior, but at different places.
Here is the relevant code:
Dave Gee
The code executes as expected for the first 1900+ transactions, but then fails with the error message:
Code:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.
/DonorForms/ReadForm.Asp, line 148
The failure is after approximately the same number of successful transaction every time, but not exactly. IE and FireFox exhibit the same behavior, but at different places.
Here is the relevant code:
Code:
if nDataItem = 0 then
sSQL = "INSERT INTO DonorForm.dbo.tblFormData (iCNS, idItem, vcValue, dtLastUpdate) VALUES ("
sSQL = sSQL & nCNS & ", " & idItem & ", '" & sVal & "','" & Now & "')"
else
sSQL = "UPDATE DonorForm.dbo.tblFormData SET vcValue='" & sVal & "', "
sSQL = sSQL & "dtLastUpdate='" & Now & "' "
sSQL = sSQL & "WHERE iCNS = " & nCNS & " "
sSQL = sSQL & "AND idItem = " & idItem
end if
cn.Execute sSQL
rs2.movenext
Dave Gee