게시판 본문 ASP, ASP.NET, IIS & Script - Read Only
DBHelper |
---|
작성자: 이석환
작성일시: 2008-12-19 00:25,
조회수: 2,386
|
위에거는 DBhelper 소스이고 아래거에서 에러가나는데 뭐가 문제 인지 모르겟습니다.
처음에는 활성연결 속성오류라고 해서 여기저기 찾아봐서 고쳤는데 이것은 도저희 못하겟드라구여; 답변좀 주심 감사하겟습니다. Public Function ExecSPReturnRS(spName, params, connectionString) If IsObject(connectionString) Then If connectionString is Nothing Then If DefaultConnection is Nothing Then Set DefaultConnection = CreateObject("ADODB.Connection") DefaultConnection.Open DefaultConnString End If Set connectionString = DefaultConnection End If End If Set rs = CreateObject("ADODB.RecordSet") Set cmd = CreateObject("ADODB.Command") cmd.ActiveConnection = connectionString cmd.CommandText = spName cmd.CommandType = adCmdStoredProc Set cmd = collectParams(cmd, params) 'cmd.Parameters.Refresh rs.CursorLocation = adUseClient rs.Open cmd, ,adOpenStatic, adLockReadOnly For i = 0 To cmd.Parameters.Count - 1 If cmd.Parameters(i).Direction = adParamOutput OR cmd.Parameters(i).Direction = adParamInputOutput OR cmd.Parameters(i).Direction = adParamReturnValue Then If IsObject(params) Then If params is Nothing Then Exit For End If Else params(i)(4) = cmd.Parameters(i).Value End If End If Next Set cmd.ActiveConnection = Nothing Set cmd = Nothing If rs.State = adStateClosed Then Set rs.Source = Nothing End If Set rs.ActiveConnection = Nothing Set ExecSPReturnRS = rs End Function ===================================================== Page = injec(Request("page")) con = injec(Request("con")) ser = injec(Request("ser")) PageSize = 10 if page="" then page=1 end If Set DBHelper = new clsDBHelper Dim SpName : SpName = "board_list" Dim paramInfo(6) paramInfo(0) = DBHelper.MakeParam("@Page",adInteger,adParamInput,10,Page) paramInfo(1) = DBHelper.MakeParam("@PageSize",adInteger,adParamInput,10,PageSize) paramInfo(2) = DBHelper.MakeParam("@con",adVarWChar,adParamInput,50,con) paramInfo(3) = DBHelper.MakeParam("@ser",adVarWChar,adParamInput,50,ser) paramInfo(4) = DBHelper.MakeParam("@TotalRecordCnt",adInteger,adParamInput,,0) paramInfo(5) = DBHelper.MakeParam("@TotalPage",adInteger,adParamInput,,0) paramInfo(6) = DBHelper.MakeParam("@arrNum",adInteger,adParamOutput,,0) Set Rs = DBHelper.ExecSPReturnRs(SpName,paramInfo,Nothing) TotalRecordCnt = DBHelper.GetValue(paramInfo, "@TotalRecordCnt") TotalPage= DBHelper.GetValue(paramInfo, "@TotalPage") arrNum= DBHelper.GetValue(paramInfo, "@arrNum") If NOT RS.EOF Then '' <<<<<<<<<<<<<<<<<<<<<<<<<<<<,여기에서 에러가 납니다 Dim ArrList : ArrList = Rs.GetRows() End If rs.Close Set rs = Nothing objDBHelper.Dispose Set objDBHelper = Nothing == ADODB.Recordset 오류 '800a0e78' 개체가 닫혀있으면 작업이 허용되지 않습니다. /list.asp, 줄 34 |
IP 주소: 222.112.2.221
|
전체 2,095 건의 게시물,
84 페이지로 구성된
ASP, ASP.NET, IIS & Script 게시판의
11 페이지입니다.
게시물 | ||||
---|---|---|---|---|
1,944 | 2009-02-25 | 7,242 | ||
1,943 | 2009-02-20 | 3,862 | ||
1,942 | 2009-02-23 | 4,067 | ||
1,941 | 2009-02-18 | 3,781 | ||
1,940 | 2009-02-18 | 3,768 | ||
1,939 | 2009-02-19 | 3,721 | ||
1,938 |
이석환 |
2009-01-22 | 4,602 | |
1,937 | 2009-01-23 | 3,922 | ||
1,936 |
김종식 |
2009-01-20 | 1,276 | |
1,935 | 2009-01-20 | 4,556 | ||
1,934 |
이석환 |
2008-12-28 | 2,433 | |
1,933 | 2008-12-29 | 4,539 | ||
이석환 |
2008-12-19 | 2,386 | ||
1,931 |
re: DBHelper [1] |
2008-12-19 | 4,140 | |
1,930 |
re: DBHelper [1] |
2008-12-21 | 4,104 | |
1,929 | 2008-11-20 | 4,331 | ||
1,928 | 2008-11-22 | 4,075 | ||
1,927 | 2008-11-04 | 7,265 | ||
1,926 | 2008-11-04 | 4,899 | ||
1,918 |
dvpkam |
2008-10-28 | 1,279 | |
1,917 | 2008-10-28 | 4,263 | ||
1,915 |
초급자 |
2008-10-22 | 3,139 | |
1,914 | 2008-10-23 | 8,715 | ||
1,910 | 2008-10-21 | 4,461 | ||
1,909 | 2008-10-21 | 4,507 |