Export Microsoft SQL Results to a CSV file

Use this article to transfer Microsoft SQL server query results to a CSV file. This is useful when analyzing dated Synergize logs.

  1. Log in to SQL Server Management Studio and using the Tools drop down navigate to Options.

  2. In the Options window, expand Query Results, SQL Server, and click Results to Text.

    Graphical user interface, application

Description automatically generated

  3. Configure the Results To Text settings as shown in the image below and click the OK button.

    Graphical user interface, application

Description automatically generated

  4. Run your query. Under the File menu, choose Save Results As.

    Graphical user interface, application, Word

Description automatically generated

  5. Specify a local or network location and give your CSV file a name. Click Save.

    Graphical user interface, text, application

Description automatically generated