OS : Microsoft Windows 2000 Server / Advanced Server
SQL : Microsoft SQL Server 2000 Standard / Enterprise Edition
소스는 이렇습니다.
| set comm = server.createobject(“adodb.command”) with comm .activeconnection = strconnect .commandText = “test” .commandType = 4 .parameters.append .createparameter (“@qty”,adinteger,adparaminput,,20) .parameters.append .createparameter(“@out”,advarchar,adparamoutput,200) set rs = .execute ‘<추가> end with |
[현상]
1. 프로시져는 쿼리분석기에서 레코드셋과 output값이 정상 작동.
2. 루프는 정상동작, outt 값이 보이지 않음.
3. 에러는 없음.
4. set rs레코드셋 여는 부분 빼고 .execute 만 하면 output 값 리턴.
| [처방(??)] .execute outt = .parameters(“@out”).value set rs = .execute 이렇게 execute를 두번실행 |