views:

39

answers:

1

How can I supress hyphens (------------) from the results set of this sqlcmd-command:

C:\temp>sqlcmd -d AdventureWorks -s ";" -Q "SET NOCOUNT ON SELECT top 5 FirstName, LastName FROM
 Person.Contact;"
FirstName                                         ;LastName
--------------------------------------------------;--------------------------------------------------
Gustavo                                           ;Achong
Catherine                                         ;Abel
Kim                                               ;Abercrombie
Humberto                                          ;Acevedo
Pilar                                             ;Ackerman

C:\temp>
A: 

I don't think there's any option available to achieve this - you'll have to live with those headers, I'm afraid.

marc_s