Microsoft SDK for Java

getSource

The getSource and setSource methods of the Recordset class indicate or set the source for the data in a Recordset object (Command object, SQL statement, table name, or stored procedure), respectively.

Syntax

public String getSource();
public void setSource(Command command);
public void setSource(String query);

Return Value

The setSource method sets a Command object reference or String value. The getSource method returns only a String value.

Parameters

command A Command object reference.
query A string value.

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