Click here to Skip to main content
15,881,813 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an excel sheet of two columns and I want to import these data into an access database but I want to do that by code and I do not know how can I do that.

I want to create access database table and import the data from the excel sheet to this table via code.

Thanks
Posted
Updated 9-Feb-11 4:38am
v3

You can read from Excel via OleDB and then write that data into Access (again via OleDB). Google for OleDB/ADO.NET tutorials and you will find dozens or perhaps 100s of articles on the topic.
 
Share this answer
 
Like Nish pointed out there are tonnes of articles out there. Go get them, like this [^] one and this one[^]
 
Share this answer
 
how to insert bulk data from excel into sql using vb.net
 
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