出来るのだASP Q&A掲示板(過去LOG)
訪問数 52046
昨日 889
今日 776 【PR】 パソコン入門からIT専門書まで幅広く取り揃えています。セブン-イレブン受取り手数料無料のセブンアンドワイ。 |
![]() ![]() ![]() ![]() ![]() |
[5342] データ件数??(無題の質問の訂正) |
投稿者:ひろのしまさん の <ホームページ> 2005/10/19 1:29:42 |
あるテーブルにインデックスであるIDを所有した状態で、 以下のようなロジックがあります。 Set cnc=Server.CreateObject("ADODB.Connection") Set rst=Server.CreateObject("ADODB.Recordset") Dim StrErr 'エラーの列を保存するコマンド Dim FldCnt 'フィールドのインデックス rst.Open "テーブル名",cnc,adOpenKeyset,adLockOptimistic If rst.Recordcount>=1 Then rst.Movefirst Do Until rst.EOF For FldCnt=1 To rst.Fields.Count //ID列以外で、空白であれば、列の位置と列名を保存する。 If rst.Fields.name<>ID Then If IsNull(rst.Fields(FldCnt-1).value) Or rst.Fields(FldCt-1).value="" Then StrErr=StrErr & rst.Fields(FldCnt-1).OrdinalPosition & rst.Fields(FldCnt-1).Name & vbCrlf End If If Not IsNull(StrErr) and StrErr<>"" Then StrErr=StrErr & "以上の項目が空白です。" cnc.Execute "Update テーブル名 set エラー='" & StrErr & vbCrlf & "' where ID=" & rst("ID") & ";" StrErr="" End If Next End If rst.MoveNext Loop End If rst.close cnc.close set rst=Nothing set cnc=Nothing このロジックが、500件前後になると限界なのか、突然”ページを表示できません。"というメッセージになってしまいます。 ASP,あるいはIISのどの設定が原因なのか把握できません。 どうかよきアドバイスをお願いします。 |
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
TreeBBS For ASP V.0.1.3 |