Skip to content

Instantly share code, notes, and snippets.

@linxlunx
Created June 24, 2020 08:59
Show Gist options
  • Save linxlunx/7a0271b1ad605b86ce47592e8f55013c to your computer and use it in GitHub Desktop.
Save linxlunx/7a0271b1ad605b86ce47592e8f55013c to your computer and use it in GitHub Desktop.
sqlcmd -S localhost -U SA -W -d db_name -h -1 -Q "SET NOCOUNT ON;select * from table_name" -o "file_name.csv" -s"," -w 10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment