Navigation:  Advantage .NET Data Provider > AdsDataAdapter Class > AdsDataAdapter Constructors >

AdsDataAdapter Constructor( String, String )

Advantage .NET Data Provider

Previous pageReturn to chapter overviewNext page

Initializes a new instance of an AdsDataAdapter object with a given SQL statement and a connection string to associate with the command.

public AdsDataAdapter( string selectCommand,

string connection );

Remarks

The selectCommand string is expected to be a valid SQL SELECT statement or stored procedure to be used as the CommandText of the SelectCommand property of the AdsDataAdapter. A new AdsConnection object will be created and opened using the given connection string.