Groups | Blog | Home
all groups > inetserver asp db > august 2004 >

inetserver asp db : Provider error '8007000e' and Scripting.FileSystemObject


Dayron
8/30/2004 12:22:37 AM
Hi, I use ASP code to generate report that I retrieve about 100,000 to
800,000 records from database using ADODB.Recordset. But when i run the
code, it show me the following error.Sometimes it wont show me this
error and it can be run. But if the records near 800,000 then program
show me the following error. If the records is about 100,000 sometimes
it can be run correctly.

Provider error '8007000e'
Not enough storage is available to complete this operation.
/e-survey/progress3.asp, line 192


Here is my code:
L188: Set rst = server.CreateObject("ADODB.RecordSet")
L189: rst.Open strSQL, connection, 3, 3

L191: iProcessedSoFar = 0

L192: If Not rst.EOF Then
L193: arrRecords = rst.GetRows
L194: iTotalRecords = Ubound(arrRecords,2) + 1
L195: rst.MoveFirst
L196: End If

Another question here is I'm using scripting.FileSystemObject to write
the data into the excel file. I manage to write all the data into the
excel file but the excel worksheet just manage to write until 65535
records and I couldnt write the data anymore. I wish to write the data
into a few worksheet. can i know how to write the data into different
worksheet in a workbook?

I hope to get this solution asap as this is the last week issues not yet
resolved.

Thank you.



*** Sent via Developersdex http://www.developersdex.com ***
Evertjan.
8/30/2004 8:52:38 AM
Dayron wrote on 30 aug 2004 in microsoft.public.inetserver.asp.db:

[quoted text, click to view]

As it says, there is not enough memory allocated to hold

800000 x number.of.fields x mean.field.length.
[could be many many megabytes]

Why would you want to retrieve them all at once?
To show them on a web page?

If the memory would not have errored out first,
you probably would have got into timeout trouble.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)
noreply NO[at]SPAM samuelhon.co.uk
8/31/2004 9:16:38 AM
Hi there

Are you using the ASP code to read the data and then the file sys obj
to save the data to a spreadsheet? This is my understanding of your
questions.

1 - Why do you need to read so many records in an ASP page?
2 - If you're writing to an Excel file, why are you using ASP?

You could use VBA in Excel to read directly from the DB and straight
into the spreadsheet

Sam

[quoted text, click to view]
AddThis Social Bookmark Button