액티브엑스 데이터 오브젝트: 두 판 사이의 차이

내용 삭제됨 내용 추가됨
2 개의 출처 구조, 0 개의 링크를 깨진 것으로 표시 #IABot (v2.0beta10)
TedBot (토론 | 기여)
잔글 봇: 틀 이름 및 스타일 정리
29번째 줄:
# 연결을 닫는다.
=== ASP의 예 ===
<sourcesyntaxhighlight lang="asp">
dim myconnection, myrecordset, name
set myconnection = server.createobject("ADODB.Connection")
42번째 줄:
set myrecordset = nothing
set myconnection = nothing
</syntaxhighlight>
</source>
레코드셋 객체 기능을 사용하지 않고 SQL을 사용한 ASP 코드로는 다음과 같다.
<sourcesyntaxhighlight lang="asp">
dim myconnection, myrecordset, name
set myconnection = server.createobject("ADODB.connection")
50번째 줄:
set myrecordset = myconnection.execute("SELECT Name FROM Phonebook WHERE PhoneNumber = '555-5555'")
name = myrecordset(0)
</syntaxhighlight>
</source>
 
=== VBA의 예 ===
<sourcesyntaxhighlight lang="vb">
Dim myconnection as new ADODB.Connection
Dim myrecordset as new ADODB.Recordset
65번째 줄:
myrecordset.close
myconnection.close
</syntaxhighlight>
</source>
 
== 소프트웨어 지원 ==