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)
public Recordset openSchema(int schema);
Returns a Recordset object.
schema | Any Schema value that represents the type of schema query to run. |
public Recordset openSchema(int schema, Object[] restrictions);
Returns a Recordset object.
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. |
public Recordset openSchema(int schema, Object[] restrictions, String schemaID);
Returns a Recordset object.
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. |