DataSourceType Property

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

DataEnvironment.DataSourceType [= cDataSourceType]

-or-

CursorAdapter.DataSourceType [= cDataSourceType]

Property Values

  • cDataSourceType
    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

Remarks

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

The DataEnvironmentDataSourceType 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