[問題] 執行 ASP 網頁導致回應緩衝區超出其設定

看板Programming作者 (Jaker)時間6年前 (2018/02/23 22:00), 6年前編輯推噓1(101)
留言2則, 2人參與, 6年前最新討論串1/1
請教各位大大, 我寫的程式是這樣,卻出現了這樣的錯誤訊息: ======== 回應物件 錯誤 'ASP 0251 : 80004005' 超出回應緩衝區限制 /test.asp, 行0 執行 ASP 網頁導致回應緩衝區超出其設定限制。 ======== 整個程式是這樣: <% Set con3 = Server.CreateObject("ADODB.Connection") con3.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ="&Server.MapPath("d.mdb") Set RS3=Server.CreateObject("ADODB.Recordset") RS3.Open "select * from ad",con3,1,1 Do While Not RS3.EOF <-- 問題在這行 response.write rs3("new_ad_enddate") loop rs3.close con3.close %> 只要拿掉上面那行do while...和loop就沒事了, 為什麼會這樣? 因為是撰寫中的程式,所以資料庫裡面只有一行資料, 不明白為什麼do while會導致這種錯誤訊息? 其他同樣的程式網頁就沒問題。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 210.64.197.128 ※ 文章網址: https://www.ptt.cc/bbs/Programming/M.1519394424.A.124.html ※ 編輯: jaker (210.64.197.128), 02/23/2018 22:00:54 ※ 編輯: jaker (210.64.197.128), 02/23/2018 22:02:04

02/24 01:37, 6年前 , 1F
這個SQL用法好復古 好像30年前的
02/24 01:37, 1F

02/25 00:16, 6年前 , 2F
無窮迴圈呀 你忘記 RS3.MoveNext
02/25 00:16, 2F
文章代碼(AID): #1Qa1vu4a (Programming)