Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to import an excel file and store it in database table.
I am using the code oleDBCon.Open() to open the connection but its not working.

In the web.config file I have used [Provider=SQLOLEDB.1]as data provider.


Please help me out.
Posted
Updated 14-Dec-10 19:07pm
v3
Comments
Venkatesh Mookkan 15-Dec-10 1:08am    
It would be easy for us to answer, if you could provide more information. What error you are getting?
Abdul Quader Mamun 15-Dec-10 2:40am    
Provider=Microsoft.Jet.OLEDB.4.0 -for earlier edition of office.
Abdul Quader Mamun 15-Dec-10 2:41am    
Provider=Microsoft.ACE.OLEDB.12.0 - Office 2007 or later.
thatraja 15-Dec-10 17:02pm    
let us know complete details with error message.

1 solution

There is a very nice artlicle on MSDN to solve your purpose. Please have a look:

http://support.microsoft.com/kb/321686[^]
 
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