You can retrieve data from Excel file:
using Microsoft.Office.Interop.Excel;
Application ExcelObj = new Application();
Workbook theBook = ExcelObj.Workbooks.Open(@"F:\TEMP\1.xlsx", 0, true, 5,"", "", true,Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "\t", false, false,0, true,null,null);
Sheets sheets =theBook.Worksheets;
Worksheet theSheet = (Worksheet)sheets.get_Item(1);
Range range = theSheet.get_Range("A1", "A6");
Array myvalues = (Array)range.Cells.Value2;
foreach (object o in myvalues)
{
Console.WriteLine(o);
}
and then write it to your DB