While I really appreciate you taking the time to respond, I still don't know
how to do any of your suggestions.
Sunshine
"Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
news:OK9FbNOGEHA.3984@TK2MSFTNGP10.phx.gbl...[color=blue]
> Uh, chunk the query out into sections instead of trying to write the whole
> table out in one shot? Or use DB2's facilities to write the file out,
> instead of bringing all that crap into ASP's memory/buffer?
>
> --
> Aaron Bertrand
> SQL Server MVP
>
http://www.aspfaq.com/
>
>
> "Sunshine" <sunshine--NO-SPAM-@fwc.state.fl.us> wrote in message
> news:%23LozYxNGEHA.1228@TK2MSFTNGP11.phx.gbl...[color=green]
> > Hello all. I have a page which sends a query to an DB2 using an ODBC.
> > The
> > results are then written to a text file. I am unable to write directly[/color][/color]
to[color=blue][color=green]
> > the users drive because of permissions. The problem I have is that when
> > the
> > query set becomes too big, I get error '8007000e' Not enough storage is
> > available to complete this operation. The query is returning 100, 000
> > records or more. So my question is how do I handle this? Somebody had
> > suggested to me to chunk the data. However, I'm just a beginner and I
> > couldn't find an example on the web. I would appreciate any help...
> >
> > Here is my code:
> > set conn = Server.CreateObject("ADODB.Connection")
> > conn.CommandTimeout=0
> > conn.ConnectionTimeout=0
> > conn.open "dsn=dsn;"
> >
> > Session("Values") = "SELECT Satement"
> >
> > set Recordset1 = conn.execute(Session("Values"))
> >
> > Dim F, Head
> > Head = " "
> > For Each F In Recordset1.Fields
> > Head = Head & "," & F.Name
> > Next
> >
> > Head = Mid(Head,3) & vbCrLf Response.ContentType = "text/plain"
> > Response.Write Head
> > Response.Write Recordset1.GetString(,,",",vbCrLf,"")
> >
> >[/color]
>
>[/color]