exporting excel file to database
C#
3
Posts
3
Posters
0
Views
1
Watching
-
i have one excel file & wants to insert that file with records in to data table??? can any one help me to do so????
-
i have one excel file & wants to insert that file with records in to data table??? can any one help me to do so????
Your question is not focused but the general structure can be as follows: Open the file using an OleDbConnection (you can find the connection string at connectionstrings.com) Read the contents into a DataTable using a SELECT * FROM [table_name] Connect to the db you wish to export the data to Create the table and columns Write the table
Natza Mitzi
-
i have one excel file & wants to insert that file with records in to data table??? can any one help me to do so????