ASP ADODB 연결 상태 체크

by kay posted Apr 13, 2015
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

Rs.Close , Rs.Open 을 마구 꼬여있는 로직이 필요한 경우...


RecordSet이 열려 있는지 체크하고 Close , Nothing 할 수 있도록  체크 하기 위한 내용.




If Not (rs Is Nothing) Then
  If (rs.State And adStateOpen) = adStateOpen Then rs.Close
  Set rs = Nothing
End If


참고 Url : http://stackoverflow.com/questions/17611545/check-if-adodb-connection-is-open


Articles

1 2 3