Microsoft SDK for Java

execute

This method of the Command class has the following signatures:

execute()
execute(Object[] parameters)
execute(Object[] parameters, int options)

execute()

Executes the query, SQL statement, or stored procedure specified in the CommandText property.

Syntax

public Recordset execute();

Return Value

Returns a Recordset object reference.

execute(Object[] parameters)

Syntax

public Recordset execute(Object[] parameters);

Return Value

Returns a Recordset object reference.

Parameters

parameters Optional. A VARIANT array of parameter values passed with an SQL statement. (Output parameters will not return correct values when passed in this argument.)

execute(Object[] parameters, int options)

Syntax

public Recordset execute(Object[] parameters, int options);

Return Value

Returns a Recordset object reference.

Parameters

parameters Optional. A VARIANT array of parameter values passed with an SQL statement. (Output parameters will not return correct values when passed in this argument.)
options Optional. A Long value that indicates how the provider should evaluate the CommandText property of the Command object. Can be one or more CommandType or ExecuteOption values.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.