To change the number of rows that the Excel ODBC driver scans to determine
what type of data you have in your table, change the setting of the
TypeGuessRows DWORD value.
NOTE: The following steps will only work if your source Excel file is saved
in the Microsoft Excel Workbook file format. If it is saved in the
Microsoft Excel 97 & 5.0/95 Workbook file format, the data will always be
truncated to 255 characters.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
For information about how to edit the registry, view the "Changing Keys And
Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete
Information in the Registry" and "Edit Registry Data" Help topics in
Regedt32.exe. Note that you should back up the registry before you edit it.
If you are running Windows NT, you should also update your Emergency
Repair Disk (ERD).
To change the setting for the TypeGuessRows value, follow these steps:
- Close any programs that are running.
- On the Start menu, click Run. Type regedit and click OK.
- In the Registry Editor, expand the following key depending on the version of Excel that you are running:
- Select TypeGuessRows and on the Edit menu click Modify.
- In the Edit DWORD Value dialog box, click Decimal under Base. Type a
value between 0 and 16, inclusive, for Value data. Click OK and quit the
Registry Editor.
NOTE: For performance reasons, setting the TypeGuessRows value to zero (0)
is not recommended if your Excel table is very large. When this value is
set to zero, Microsoft Excel will scan all records in your table to
determine the type of data in each column.