The Execute
method executes a specified query, SQL statement, stored procedure,
or provider-specific text. The results are
stored in a new Recordset object if it is a row-returning query. A
closed Recordset object will be returned if it is not a
row-returning query. Note: The
returned Recordset is always a read-only, forward-only
Recordset! Tip: To create a
Recordset with more functionality, first create a Recordset object.
Set the desired properties, and then use the Recordset object's
Open method to execute the query. Syntax for
row-returning
Set objrs=objconn.Execute(commandtext,ra,options) Syntax for
non-row-returning
objconn.Execute commandtext,ra,options
Parameter参数 Description描述
commandtext Required. The SQL
statement, stored procedure, or provider-specific text to
execute
ra Optional. The
number of records affected by the query
options (责任编辑:每日一笑) |