Is there a way to create a text-based output from a select statement where it might look like:
UID Department ProdCode Product Description
---------- ---------- ---------- -------------------
4 DeptA 12345678 Product A
6 DeptB 87654321 Product B
I tried using: FOR XML. I can convert it to HTML that way, but I need a text version of this. There is FOR JSON also, so was hoping there was something like FOR TEXT. But I can't find anything :(