PRB: DTS Wizard may not detect Excel column type for mixed data in SQL Server (236605)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
- Microsoft SQL Server 7.0
- Microsoft Excel 97 for Windows
- Microsoft SQL Server 2005 Standard Edition
- Microsoft SQL Server 2005 Developer Edition
- Microsoft SQL Server 2005 Enterprise Edition
- Microsoft SQL Server 2005 Workgroup
This article was previously published under Q236605 SYMPTOMS When you use the Microsoft SQL Server Data Transformation
Services (DTS) 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. DTS does not provide a warning message to indicate that
some rows might not transfer.
Note If you are using SQL Server 2005, use the SQL Server Import and Export Wizard to perform the data transform.CAUSE 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.WORKAROUND 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.REFERENCESFor more information, see the "SQL Server Data
Transformation Services" topic in SQL Server Books Online.
Modification Type: | Major | Last Reviewed: | 12/9/2005 |
---|
Keywords: | kbDatabase kbprb KB236605 |
---|
|