Sample code is
INSERT INTO OPENROWSET ('Microsoft.ACE.OLEDB.12.0', 'Excel 8.0;Database=E:\Application\PASpready\Files\NK\NKAll.xlsx;HDR=YES;','SELECT * FROM [All$]')
select ..... from table
All the data comes over as text and number decimals loose their format. How can i keep the data format in excel.
Try building that NKAll.xlsx file prior to exporting, as a template, having a dummy row of data with correct formats.
That might help excel infer the types correctly. If that works, then you can initially update the first row, and then insert all the rest.