OdbcDataAdapter Constructor (String^, String^)
.NET Framework (current version)
Initializes a new instance of the OdbcDataAdapter class with an SQL SELECT statement and a connection string.
Assembly: System.Data (in System.Data.dll)
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: