In my psql
I used to set \X
for enabling Expanded Display
and view my rows data with column names along side. Can I get this in SQLCMD
as well?
Try sqlcmd ... -F vertical
.
I can't comment on how far back that option goes, but it is working on the version that's currently available these days on MacOS via Homebrew:
brew info sqlcmd
==> sqlcmd: stable 1.8.2 (bottled)
Microsoft SQL Server command-line interface
https://github.com/microsoft/go-sqlcmd