How to format SQLCMD output

后端 未结 3 733
小蘑菇
小蘑菇 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:26

    This is how I isolated a scalar.

    sqlcmd -S xxx.xxx.xxx.xxx,xxxxx -d MyDb -U myUser -P MyPassword -h -1 -W -Q "set NOCOUNT ON; select a from b where b.id='c'" 
    

提交回复
热议问题