sqlsql-servercsvsqsh

SQL Server query result to file


How can I save query result into file from sqsh console?

Google is talking about some gui tools I don't want to use.

PS: Linux


Solution

  • I'm not familiar with sqsh but if it's a console tool, can you just pipe the output to a file?

    sqsh <mycommand> >output.txt