I'm generating xml files from sql server using a select and the for xml clause The resulting xml files are opened in excel, and I need to add custom headers for each column / field Can I specify custom headers name in the sql script?
As requested by Shnugo, here is a sample of the xml used
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<VendorServices>
<VendorService>
<VendorServiceId>0</VendorServiceId>
<VendorId>0</VendorId>
<ServiceId>0</ServiceId>
<Cover>0</Cover>
<Percentage>0</Percentage>
<TechRateHr>0</TechRateHr>
<HelperRateHr>0</HelperRateHr>
</VendorService>
<VendorService>
<VendorServiceId>1</VendorServiceId>
<VendorId>1</VendorId>
<ServiceId>1</ServiceId>
<Cover>0</Cover>
<Percentage>0</Percentage>
<TechRateHr>0</TechRateHr>
<HelperRateHr>0</HelperRateHr>
</VendorService>
</VendorServices>
I can open it with Excel 2013, Excel ask me if I want to open like xml table and some other options, and then ask about the creation of a schema