Reputation: 91
I have a excel template am taking it in a datatable i want to read the datatable and save it in database
my problem is data is not well aligned i want to insert data number wise for e.g set of 1 number data then process number 2 data. i have two tables one for saving training details and other for participant
var dtsel = dataTable.Select();
i want to process this dtsel datatable.
Upvotes: 1
Views: 68
Reputation: 123
i want to read the datatable and save it in database
my problem is data is not well aligned
Then just go ahead and align your data in excel...
One way to do so would be:
5. Now you can easily import the excel sheet to SQL server, MY SQL or other databases with built in tools
Import data from Excel to SQL Server or Azure SQL Database
Upvotes: 1