Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have some data which is saved in excel spreadsheet i want to import that data in Sql sever database using C#.net windows application.I want that when i click on one button the excel file is imported and all the data is exported in sql server database
Posted

1 solution

 
Share this answer
 
Comments
Member 11057488 15-Apr-15 3:03am    
OleDbConnection connection = new OleDbConnection("Provider=Microsoft.JET.OLEDB.4.0;Data
Source=" + txtFilePath.text.trim() + ";Extended Properties=Excel 8.0");

how to get connection string and how to establish connection...

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