I have a script which exports a recordset to excel. My recordset has 139 columns. I can see in fiddler that table header of the excel is created but when it comes to write the values I face this error:
Microsoft Cursor Engine error '8007000e'
Out of memory.
/includes/ExportFunctions.inc, line 49
when I remove 5 columns then it works quite fine, even the null valued columns! It is so strange to me because I can not find any limitation for recordsets and I am sure I have disposed all the objects required. Here is my code:
Response.Write "<table>" & vbCrLf
Response.Write "<tr>" & vbCrLf
For intItem = 0 To rstResult.Fields.count - 1
Response.Write "<th>" & rstResult(intItem).Name & "</th>" & vbCrLf
Next
Response.Write "</tr>" & vbCrLf
dim index
index = 0
Do While Not rstResult.EOF
Response.Write "<tr>" & vbCrLf
For intItem = 0 To rstResult.Fields.count - 1
Response.Write "<td><nobr>"
If IsNull(rstResult(intItem).Value) Then
Response.Write " "
else
Response.Write rstResult(intItem).Value
end if
Response.Write "</nobr></td>" & vbCrLf
Next
Response.Write "</tr>" & vbCrLf
Response.Flush
rstResult.MoveNext
LOOP
The error refers to line 49 which is
Do While Not rstResult.EOF
Does anyone has an idea about this?