데이터베이스에 대한 연결을 닫습니다.
구문
Object.Close()
Arguments - Object: 필수 항상 ADODB Connection 객체의 이름입니다.
주석
다음 예에서는 Close 메소드의 사용을 보여 줍니다.
예 1:
'Create ADODB.Connection Object
Dim ConnObj ' Create a variable.
Set ConnObj = CreateObject("ADODB.Connection")
ConnObj.Open("ConnectionString") 'Creates DB Connection by Using Connection String
'Do all the operations by using ADODB Connection Object based on the requirement
ConnObj.Close()
Set ConnObj = Nothing