I am trying to export data to send to a third party in an Excel Spreadsheet. The third party is extremely fussy about how their data arrives it must be in Excel and numbers have to be numbers.
When I try to DTS data to Excel or script data to Excel using
insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=c:\Test.xls;',
'SELECT * FROM [Sheet1$]')
select COL1, COL2 from SQLTABLE order by COL1
The number columns are always put into Excel as Text.
I have tried formatting the Excel sheet, specifying that the columns exported are numbers but I can't find anything that works.
Anyone got any ideas on this.
When I try to DTS data to Excel or script data to Excel using
insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=c:\Test.xls;',
'SELECT * FROM [Sheet1$]')
select COL1, COL2 from SQLTABLE order by COL1
The number columns are always put into Excel as Text.
I have tried formatting the Excel sheet, specifying that the columns exported are numbers but I can't find anything that works.
Anyone got any ideas on this.