ADO 명령 개체
명령 개체
ADO Command 개체는 데이터베이스에 대해 단일 쿼리를 실행하는 데 사용됩니다. 쿼리는 레코드 생성, 추가, 검색, 삭제 또는 업데이트와 같은 작업을 수행할 수 있습니다.
쿼리를 사용하여 데이터를 검색하는 경우 데이터는 RecordSet 개체로 반환됩니다. 이것은 검색된 데이터가 Recordset 개체의 속성, 컬렉션, 메서드 및 이벤트에 의해 조작될 수 있음을 의미합니다.
Command 개체의 주요 기능은 매개 변수와 함께 저장된 쿼리 및 프로시저를 사용하는 기능입니다.
ProgID
set objCommand=Server.CreateObject("ADODB.command")
속성
Property | Description |
---|---|
ActiveConnection | Sets or returns a definition for a connection if the connection is closed, or the current Connection object if the connection is open |
CommandText | Sets or returns a provider command |
CommandTimeout | Sets or returns the number of seconds to wait while attempting to execute a command |
CommandType | Sets or returns the type of a Command object |
Name | Sets or returns the name of a Command object |
Prepared | Sets or returns a Boolean value that, if set to True, indicates that the command should save a prepared version of the query before the first execution |
State | Returns a value that describes if the Command object is open, closed, connecting, executing or retrieving data |
행동 양식
Method | Description |
---|---|
Cancel | Cancels an execution of a method |
CreateParameter | Creates a new Parameter object |
Execute | Executes the query, SQL statement or procedure in the CommandText property |
컬렉션
Collection | Description |
---|---|
Parameters | Contains all the Parameter objects of a Command Object |
Properties | Contains all the Property objects of a Command Object |