views:

48

answers:

1

How does one format wide listings vertically like in MySQL using the sqlcmd client? Or should I be using osql instead?

And must I write "GO" each time to execute my query? Is there a shorthand?

+1  A: 

You can use -y or -Y to limit the width of wide columns in SQLCMD, but I'm not sure there's a way to wrap the contents of the column within that width, which is what I believe you're asking.

Also, you can use -c to specify a custom command terminator instead of GO, which is the default.

Bob Pusateri