Click here to Skip to main content
15,921,941 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
SQL
insert INTO tblcharges select * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 3.0;imex=1;hdr=yes;Database=C:\ss1.xls', 'select * from [sheet1$]')


what is the 'imex' means in the query???
Posted
Updated 27-Apr-11 18:29pm
v2

"IMEX=1;" tells the driver to always read "intermixed" (numbers, dates, strings etc) data columns as text. Note that this option might affect excel sheet write access negative."

I picked this up from here[^].
 
Share this answer
 
This is a repost of your question a while ago. If you have some clarifications on the answer of your original post, why not comment on it, instead of downvoting the answer and posting the same question.

sql query problem.......[^]
 
Share this answer
 

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