Hi ashu_dhiman
1.If you want to import all columns to sql database use sqlbulkcopy and map your source and destination columns.
2.Secondly if you want selected values to import go for Excel Interop classes.
with Excel Interop classes you can do something like this
public void parsefunction(string filepath)
{
Microsoft.Office.Interop.Excel.Application Exlapp;
Microsoft.Office.Interop.Excel.Workbook Exlwkbk;
Microsoft.Office.Interop.Excel.Worksheet Exlwksht;
Microsoft.Office.Interop.Excel.Range ExlRng;
Exlapp = new Microsoft.Office.Interop.Excel.ApplicationClass();
Exlwkbk = Exlapp.Workbooks.Open(@filepath,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing);
Exlwksht = (Microsoft.Office.Interop.Excel.Worksheet)Exlwkbk.Sheets.get_Item(1);
ExlRng = Exlwksht.UsedRange;
ExlRng = Exlwksht.get_Range("A2","L2");
string a3;
string b3;
string c3;
string d3;
string e3;
string f3;
string g3;
string h3;
string i3;
string j3;
string k3;
a3 = Exlwksht.get_Range("A3",Type.Missing).Value.ToString();
b3 = Exlwksht.get_Range("B3",Type.Missing).Value.ToString();
c3= Exlwksht.get_Range("C3",Type.Missing).Value.ToString();
d3 = Exlwksht.get_Range("D3",Type.Missing).Value.ToString();
e3 = Exlwksht.get_Range("E3",Type.Missing).Value.ToString();
f3 = Exlwksht.get_Range("F3",Type.Missing).Value.ToString();
g3 = Exlwksht.get_Range("G3",Type.Missing).Value.ToString();
h3 = Exlwksht.get_Range("H3",Type.Missing).Value.ToString();
i3 = Exlwksht.get_Range("I3",Type.Missing).Value.ToString();
j3 = Exlwksht.get_Range("J3",Type.Missing).Value.ToString();
k3 = Exlwksht.get_Range("K3",Type.Missing).Value.ToString();
SqlHelper.ExecuteNonQuery(ConfigurationManager.AppSettings["connstring"], "insertetartdata",a3,b3, c3, d3, e3,f3,g3,h3,i3,j3,k3
Hope this may help you ..