Import Excel .xslx file into sql server : difficulty in updating table
问题 I am importing excel file into sql server datatbase. The code works fine but the way I am doing currently is deleting (clear the table) the table data. string ssqltable = "tStudent"; string myexceldataquery = "select id,student,rollno,course from [sheet1$]"; try { string sexcelconnectionstring = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source =" + excelfilepath + "; Extended Properties=\"Excel 12.0; HDR=Yes; IMEX=2\""; string ssqlconnectionstring = "Data Source=DELL\\SQLSERVER1;Trusted