I tried what you suggested before posting my inquiry ...
sqlcmd -i CreateXML.sql -S xxx -U xx -P xx -d dbname >> result.xml
when I open the result.xml, the output was not in xml format ...
--
Lito D
[quoted text, click to view] "m.bohse@quest-consultants.com" wrote:
>
> LITO
>
> use sqlcmd.exe, run a Select statement with the FOR XML clause and
> write the results to an output file.
>
> Markus
>