Configuring Data Type Options
You can configure data type options to modify how the connector displays or returns some data types.
To configure data type options:
- To access data type options, open the ODBC Data Source Administrator where you created the DSN, then select the DSN, then click Configure, and then click Data Type Options.
- To enable the connector to return data as Unicode character types, select the Use Unicode check box.
- Returns SQL_WCHAR instead of SQL_CHAR.
- Returns SQL_WVARCHAR instead of SQL_VARCHAR.
- Returns SQL_WLONGVARCHAR instead of SQL_LONGVARCHAR.
- To configure the connector to return Boolean columns as SQL_VARCHAR instead of SQL_BIT, select the Show Boolean Column As String check box.
- To configure the connector to return Text columns as SQL_LONGVARCHAR instead of SQL_VARCHAR, select the Text as LongVarChar check box.
- In the Max Varchar field, type the maximum data length for VarChar columns.
- In the Max LongVarChar field, type the maximum data length for LongVarChar columns.
- To save your settings and close the Data Type Configuration dialog box, click OK.
Note:
When the Use Unicode check box is selected, the connector does the following:
- Data Types
- Data Type Configuration Options on page 1
- Creating a Data Source Name