I am firing a SQL query through command prompt
H:\>sqlcmd -S cx-siscsqltest\sqlinst -Q "select serverproperty('servername'), serverproperty('Edition'), SERVERPROPERTY('ProductVersion'), SERVERPROPERTY('Productlevel') "
The output is returning huge spaces, can you please help me remove those spaces? I have to use this output in xml
FOR XML AUTO,FOR XML PATH) so you may be able to get the result you're after without further formatting.