I'm insert data from a sql server table and I lose all the formatting in the excel file.
My sales_date and volume both display as general. I need them to display as a date format and a number format.
They are both character format.
INSERT INTO OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;Database=C:\company-info.xlsx;HDR=YES',
'SELECT Company, Pub, States, Years, Sales_Date, Container, Volume FROM [Data$]')
SELECT Company, Pub, States, Years, Sales_Date, Container, Volume from TempFinal
Any ideas?
Thank you,
Slash
Bookmarks