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
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'"