SQL 2000 database I can't create root element with for xml auto, root "root" with bcp
the xml file is created but root is not created.. Is it common with SQL 2000 database
This works... but root element is not created
This Does not work at all ...
I can't find out what is wrong
I got syntax error near root..
Pls any help
the xml file is created but root is not created.. Is it common with SQL 2000 database
This works... but root element is not created
Code:
exec master..xp_cmdshell 'bcp "select * from mytable" as ROW for xml auto , elements, queryout "c:\file.xml" -T -C 1251 -w -r -t'
This Does not work at all ...
Code:
exec master..xp_cmdshell 'bcp "select * from mytable" as ROW for xml auto , root " rows" , elements, queryout "c:\file.xml" -T -C 1251 -w -r -t'
I can't find out what is wrong
I got syntax error near root..
Pls any help