AseDataAdapter constructors

Description

Initializes an AseDataAdapter object.

Syntax 1

AseDataAdapter( )

Syntax 2

AseDataAdapter( AseCommand selectCommand )

Syntax 3

AseDataAdapter( string selectCommandText, AseConnection selectConnection )

Syntax 4

AseDataAdapter( string selectCommandText, string selectConnectionString )

Parameters

selectCommand: An AseCommand object that is used during Fill to select records from the data source for placement in the DataSet.

selectCommandText: A Select statement or stored procedure to be used by the SelectCommand property of the AseDataAdapter.

selectConnection: An AseConnection object that defines a connection to a database.

selectConnectionString: A connection string for an Adaptive Server database.

Example

The following code initializes an AseDataAdapter object:

AseDataAdapter da = new AseDataAdapter( "SELECT emp_id, emp_lname FROM employee,” conn );