OdbcDataAdapter Constructor (String^, OdbcConnection^)

 

Initializes a new instance of the OdbcDataAdapter class with an SQL SELECT statement and an OdbcConnection.

Namespace:   System.Data.Odbc
Assembly:  System.Data (in System.Data.dll)

public:
OdbcDataAdapter(
	String^ selectCommandText,
	OdbcConnection^ selectConnection
)

Parameters

selectCommandText
Type: System::String^

A string that is a SQL SELECT statement or stored procedure to be used by the SelectCommand property of the OdbcDataAdapter.

selectConnection
Type: System.Data.Odbc::OdbcConnection^

An OdbcConnection that represents the connection.

This implementation of the OdbcDataAdapter can be useful in an application that must call the Fill method for two or more OdbcDataAdapter objects.

The following example creates an OdbcDataAdapter and sets some of its properties.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: