Home » » Importing data from an excel file cells are becoming " " after the import?

Importing data from an excel file cells are becoming " " after the import?

Written By M.L on திங்கள், 10 அக்டோபர், 2011 | அக்டோபர் 10, 2011

I'm importing data from an excel file and I just noticed that some cells are becoming " " after the import
The data in excel column which contains:
12 
Test


OUTPUT in Grid View:
12 


2

Please reply to me only if any knows the solution.


Answer:

Hkey_Local_Machine/Software/Microsoft/Jet/4.0/Engines/Excel/TypeGuessRows

Hkey_Local_Machine/Software/Microsoft/Jet/4.0/Engines/Excel/ImportMixedTypes

TypeGuessRows: setting the value to 0 (zero) will force ADO to scan all column values before choosing the appropriate data type.

ImportMixedTypes: should be set to value 'Text' i.e. import mixed-type columns as text.

0 comments:

கருத்துரையிடுக

Popular Posts

General Category