Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\SigmaFlow Projects\BPI\NewTFS\Insight\Insights Web\TempFiles\xbumrsw05bs53x52gojp0tayH\;Extended Properties='text;HDR=YES;IMEX=1;'


oledb driver filling data but ignoring the entire value which is cosist of alphanumeric.

actually ,when user import the excel file , it behave strange.Here I have a column which have alpha numer ,text and numbers, Oldeb driver check the majority of the value's datatypes, if it has 4 alpha numeric & 2 numeric, then it shows 4 alpha numeric & 2 nulls in place of 2 numeric, same situation will occured with the others fielfs.. it sees only the majority & then decide.
Posted
Updated 12-Dec-13 23:19pm
v2
Comments
thatraja 10-Dec-13 10:34am    
Not clear, update your question with more clear details
CHill60 10-Dec-13 15:11pm    
Your data source doesn't look right... there should be a database name at the end of all that gibberish not a backslash
Ali_100 13-Dec-13 5:16am    
No that was not the issue with me,, I got a solution that to modify the registry in server.
CHill60 13-Dec-13 5:39am    
Well I'm not convinced ... that connection string is wrong and you shouldn't have to make registry changes just to connect. However if you have found the solution then please post it for the benefit of others

1 solution

Remove IMEX=1 from the end of connection string.
For further information, please, see: http://www.connectionstrings.com/excel/[^]
 
Share this answer
 
Comments
pravallika5 20-Nov-17 3:15am    
Am facing similar issue. Excel not reading any mixedtype values after 8 numereric values. Through some reserach found that need to make the changes in registry. But my company will not allow that to do. Do have any other workaround??
Below is my connection string:
<add name="Excel03ConString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties='Excel 8.0;HDR={1};IMEX=1;'" />
<add name="Excel07ConString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties='Excel 8.0;HDR={1};IMEX=1;'" />
Can someone help me?
Maciej Los 20-Nov-17 3:51am    
Read my answer one more time. What is stated there? Remove "IMEX=1" from the end of connection string.
pravallika5 20-Nov-17 3:55am    
Thanks Maciej, but removing IMEX didnt work! In the first 8 rows if i have any alphanumeric it is skipping that..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900