PRB: DTS Wizard May not Detect Excel Column Type for Mixed DataID: Q236605
|
When using the Microsoft SQL Server Data Transformation Services Import Wizard to import data from a Microsoft Excel worksheet, if a text column contains data that could be interpreted as mixed data (for example, alphanumeric characters representing hexadecimal data), the initial few rows determine the actual data type used and subsequent rows may be transferred as NULLs.
This behavior is by design for the Excel ISAM. The first 8 rows determine the data type of the column. For example, if most of the first 8 rows contain numeric characters, the datatype of the column is a number. All subsequent values that do not fit that datatype are returned as NULL.
One workaround is to save the Excel sheet as a text file and then you use the DTS Wizard to import the file into SQL Server.
Decimal | Hex |
---|---|
1 | 1 |
2 | 2 |
3 | 3 |
4 | 4 |
5 | 5 |
6 | 6 |
7 | 7 |
8 | 8 |
9 | 9 |
10 | A |
11 | B |
12 | C |
13 | D |
14 | E |
15 | F |
Additional query words: kbDSupport
Keywords : kbDatabase kbOLEDB kbSQLServ kbVC kbSQLServ700
Version : WINDOWS:97; winnt:7.0
Platform : WINDOWS winnt
Issue type : kbprb
Last Reviewed: July 30, 1999