How to format SQLCMD output

后端 未结 3 660
小蘑菇
小蘑菇 2021-02-13 20:01

I am using below command line to run a SQL query using SQLCMD

sqlcmd -S Server -Q \"select top 100 * From people\" -d people -t 10 

The table h

3条回答
  •  日久生厌
    2021-02-13 20:37

    Formatting issues usually pop up due to your console window. One solution is to output to the file and use notepad/your favorite editor:

    sqlcmd -S myServer -d myDB -E -Q "select top 100 * From people" 
         -o "output.txt"
    

提交回复
热议问题