2.2.12. ADO Command object

发布时间 : 2025-10-25 13:35:17 UTC      

Page Views: 10 views

Command object

ADO Command object is used to perform a simple query oriented to the database. This query can perform actions such as create, add, retrieve, delete, or update records.

If the query is used to retrieve data, the data will be used as a RecordSet object returns. This means that the retrieved data can be retrieved RecordSet object’s properties, collections, methods, or events.

The Command main feature of the object is the ability to use stored queries and stored procedures with parameters.

ProgID

set objCommand=Server.CreateObject("ADODB.command") 

Attribute

Attribute

Description

ActiveConnection

Sets or returns a defined connection or the Connection string of the object.

CommandText

Sets or returns a string value that contains provider (provider) commands, such as SOL statements, table names, or stored procedure calls. The default value is “” (zero length string).

CommandTimeout

Sets or returns a long integer value that indicates the time, in seconds, towait for the command to execute. The default value is 30.

CommandType

Sets or returns a Command type of object

Name

Set or return the name of a Command object

Prepared

Indicates whether to save the compiled version of the command (the prepared version) before execution.

State

Returns a value that describes the Command object is open, closed, connected, executed, or retrieved data.

Method

Method

Description

Cancel

Cancels an execution of a method.

CreateParameter

Create a new Parameter object

Execute

Execution CommandText a query, SQL statement, or stored procedure in the.

Set

Set

Description

Parameters

All Parameter objects that contain a Command object.

Properties

All Parameter objects that contain a Command object.

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。