transfer data from excel file to sql server programatically
-
how to transfer data from excel file to sql server's tables in asp.net programatically i can't use wizard can any body will help me regarding the same thanks in advance
Hi, It is big procee Let give you hint Use the OleDbProvider and open the file and file in to data set and update to database ExcelConnectionString = Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties="Excel 8.0;HDR=YES";Data Source = " & ExcelFilePath strSQL = "select Col1,Col2 from [Sheet1$]" SomeDataAdapter = New OleDbDataAdapter(strSQL, ExcelConnectionString ) have SomeDataSet declared daCollateral.Fill(SomeDataSet, ) :)try this Chinna Srihari Tech Lead, Capgemini
-
Hi, It is big procee Let give you hint Use the OleDbProvider and open the file and file in to data set and update to database ExcelConnectionString = Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties="Excel 8.0;HDR=YES";Data Source = " & ExcelFilePath strSQL = "select Col1,Col2 from [Sheet1$]" SomeDataAdapter = New OleDbDataAdapter(strSQL, ExcelConnectionString ) have SomeDataSet declared daCollateral.Fill(SomeDataSet, ) :)try this Chinna Srihari Tech Lead, Capgemini