出来るのだASP Q&A掲示板(過去LOG)
訪問数 52046
昨日 889
今日 776 【PR】 パソコン入門からIT専門書まで幅広く取り揃えています。セブン-イレブン受取り手数料無料のセブンアンドワイ。 |
![]() ![]() ![]() ![]() ![]() |
[4617] Provider エラー 80020005 |
投稿者:himekaさん 2004/09/03 14:01:31 |
こんにちは。 以下のコードを実行中に Provider エラー 80020005 種類が一致しません。 が発生し、調べてみましたが事例や解説が発見できません。 エラーについて、どなたかご存知のかたいらっしゃれば教えていただけないでしょうか?よろしくお願いします。 環境はサーバがWin2003、IIS6.0、SQL Server2000 クライアントがWinXPです --------------------------------------------------- set xcn = ad_cn() set xrs = ad_rs() 'On Error Resume next xcn.open strConnect xcn.Execute "USE " & request.Form("dbName") xrs.open "CreateTable_header", xcn, adopenstatic, adLockOptimistic, adCmdTable if xrs.EOF then tmpHead = 0 else tmpHead = extSQLMax("CreateTable_Header", "headID", strConnect) End if xcn.Errors.Clear xrs.Addnew xrs("headID").value = tmpHead xrs("dbName").value = request.Form("dbName") xrs("tbName").value = request.Form("tbName") xrs("ownName").value = request.Form("ownName") if errflg = false And xcn.Errors.count = 0 then xrs.Update If xcn.Errors.Count > 0 then errflg = true For each err in xcn.errors errmsg = errmsg & err.Description & vbCrLf Next End If Else xrs.cancel errflg = true end if xrs.close xcn.close 'On Error Goto 0 |
![]() ![]() |
![]() ![]() |
TreeBBS For ASP V.0.1.3 |