OdbcDataAdapter Constructor (String^, String^)

 

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

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

public:
OdbcDataAdapter(
	String^ selectCommandText,
	String^ selectConnectionString
)

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.

selectConnectionString
Type: System::String^

The connection string.

This overload of the OdbcDataAdapter constructor uses the selectConnectionString parameter to set the SelectCommand property. However, it does not open the connection. You still must explicitly open the connection.

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: