Microsoft SDK for Java

execute

This method of the Connection class has the following signatures:

execute(String commandText)
execute(String commandText, int recordsaffected)

execute(String commandText)

Executes the query, SQL statement, or stored procedure specified in the commandText parameter.

Syntax

public com.ms.wfc.data.Recordset execute(String commandText);

Return Value

Returns a Recordset object reference.

Parameters

commandText A String that contains the SQL statement, table name, stored procedure, a URL, or provider-specific text to execute.

execute(String commandText, int recordsaffected)

Executes the query, SQL statement, or stored procedure specified in the commandText parameter and returns the number of records affected by the procedure.

Syntax

public com.ms.wfc.data.Recordset execute(String commandText, int recordsaffected);

Return Value

Returns a Recordset object reference.

Parameters

commandText A String that contains the SQL statement, table name, stored procedure, a URL, or provider-specific text to execute.
recordsaffected Optional. A variable to which the provider returns the number of records that the operation affected.

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