Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
09-02-2013, 03:07 PM #1
- Join Date
- Nov 2007
- Thanked 1 Time in 1 Post
Uh? Response Buffer Limit Exceeded when retrieving 12 records...
I'm getting the error: Response Buffer Limit Exceeded when trying to retreive 12 records from a database. Not had this before, any ideas?
'Connect to database set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.ACE.OLEDB.12.0" conn.Open Server.MapPath("/nightclub_photography/data/database/jamsnaps.mdb") 'Get the current date today = ISODate(Request.Cookies("sdate") & " 00:00:00") sql = "SELECT * FROM sales WHERE DATEVALUE(saleDate) = " & today & " AND printed = 0" Set rs = conn.Execute(sql) if rs.EOF then response.write "No sales found!" else do until rs.EOF response.write rs("product") loop end if rs.close conn.close
09-02-2013, 09:12 PM #2
Ready to kick yourself? HARD?
*WHERE* is your
rs.MoveNextinside that DO loop?
Without it, your code will response.write the first rs("product") an INFINITE number of times...well, at least until you exceed the buffer size.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.