string ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\Excelfile.xls; Extended Properties=\"Excel 8.0;Text; HDR=No; IMEX=1; Mode=Read\";";
OleDbConnection conn = new OleDbConnection(ConnStr);
conn.Open();
string SQL = "Select * From Tablename";
OleDbDataAdapter Adapter = new OleDbDataAdapter(SQL, conn);
DataSet ds = new DataSet();
Adapter.Fill (ds);
conn.close();
foreach (DataRow r in ds.Tables[0].Rows)
{
//insert into sql-server
}