프로그래밍/asp

수동 트랜잭션 모드 연결 오류

GOHA 2011. 10. 6. 10:34
728x90

'수동 트랜잭션 모드 또는 분산 트랜잭션 모드에 있기 때문에 연결을 새로 만들 수 없습니다.'

라고 에러메세지가 뜬다.

 ==< 우선 에러난 구문 >=================================

sql="select 어쩌구..."

set rs=conn.execute(sql)

 if not rs.eof or not rs.bof then

  while not rs.eof 

      subsql="update 저쩌구..."

      set subrs=conn.execute(subsql)

    rs.movenext

  wend

end if

 =======================================================

 ==< 해결 구문 >========================================

 set rs = server.createobject("adodb.recordset")

sql="selet 어쩌구 ..."

rs.open sql, conn, 1, 1

 이하... 위와 동일...

 =======================================================

728x90