How can I tell SQL Server 2008 Management Studio to turn off printing of header dashes when displaying text results in a query window?
Examples of header dashes being produced are:
selectId, count(*) ContentCount from Table group by Id order by count(*) desc produces:
Id ContentCount
-------------------- ------------------
622 5
623 1
select 'Person Info' produces:
------------
Person Info
Those dashes are not conducive to all situations so I expect there is way to turn them off.
Goto Tools, Options, Query Results. You can change the output to Grid if you want there. I don’t see a way to turn off just the dashes in the Results to text options. Check that – change to Comma Delimited and the dashes don’t show up.