SelectCommand Property

An AseCommand that is used during Fill or FillSchema to obtain a result set from the database for copying into a DataSet.

Syntax

AseCommand SelectCommand

Access

Read-write

Usage

  • When SelectCommand is assigned to a previously created AseCommand, the AseCommand is not cloned. The SelectCommand maintains a reference to the previously created AseCommand object.

  • If the SelectCommand does not return any rows, no tables are added to the DataSet, and no exception is raised.

  • The Select statement can also be specified in the AseDataAdapter constructor.