DataSourceType Property

Visual Studio .NET 2003

Specifies the data source type of the data source in the DataEnvironment or CursorAdapter DataSource property. The DataEnvironment or CursorAdapter DataSourceType property determines the value of the corresponding DataSource property. Read-only at design time and read/write at run time.

DataEnvironment.DataSourceType [= cDataSourceType]


CursorAdapter.DataSourceType [= cDataSourceType]

Property Values

Character data type. The cDataSourceType parameter specifies a character string describing the data source type of the data source used by the data environment or cursor adapter.

The following table lists the values for cDataSourceType.

DataSourceType DataSource
"ADO" Reference to a valid ActiveX Data Object (ADO) RecordSet or Command object
"ODBC" A valid Open Database Connectivity (ODBC) connection handle
"Native", "XML", null (.NULL.), or empty string ("") Disregarded


You cannot use local and remote views as a "Native" source for CursorAdapter objects, but you can attach them using the CursorAttach method.

The DataEnvironment DataSourceType is not specified at design time when the data environment does not specify a data source.

See Also

Properties | DataEnvironment Object Properties, Methods and Events | CursorAdapter Object Properties, Methods, and Events | DEClass Property | DataSource Property | CursorAttach Method

Applies To: CursorAdapter Class | DataEnvironment Object