Microsoft SDK for Java

openSchema

This method of the Connection class returns a Recordset object that contains schema information. The Recordset will be opened as a read-only, static cursor. The schema parameter determines what columns appear in the Recordset. The openSchema method has the following signatures:

openSchema(int schema)
openSchema(int schema, Object[] restrictions)
openSchema(int schema, Object[] restrictions, String schemaID)

openSchema(int schema)

Syntax

public Recordset openSchema(int schema);

Return Value

Returns a Recordset object.

Parameters

schema Any Schema value that represents the type of schema query to run.

openSchema(int schema, Object[] restrictions)

Syntax

public Recordset openSchema(int schema, Object[] restrictions);

Return Value

Returns a Recordset object.

Parameters

schema Any Schema value that represents the type of schema query to run.
restrictions Optional. An array of query constraints for each schema option, as listed in Schema.

openSchema(int schema, Object[] restrictions, String schemaID)

Syntax

public Recordset openSchema(int schema, Object[] restrictions, String schemaID);

Return Value

Returns a Recordset object.

Parameters

schema Any Schema value that represents the type of schema query to run.
restrictions Optional. An array of query constraints for each schema option, as listed in Schema.
schemaID The GUID for a provider-schema query not defined by the OLE DB specification. This parameter is required if schema is set to PROVIDERSPECIFIC; otherwise, it is not used.

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