Are you using Azure Data Studio (ADS) for your SQL Server tasks? If so, you’ll be pleased to know that ADS offers several options for exporting data, including some that are not available in SQL Server Management Studio (SSMS).
In addition to the traditional options like exporting to Comma Separated Value (CSV) and Microsoft Excel, ADS also supports exporting to JavaScript Object Notation (JSON), Extensible Markup Language (XML), and even creating charts and visualizations. Let’s explore these options in more detail.
Exporting to CSV
If you need to export your result set to a delimited file, ADS makes it easy. Simply click the ‘Save As CSV’ icon, choose the folder to save the file to, name the file, and save it. ADS will automatically open a new tab displaying your comma separated values.
Exporting to Excel
Exporting to Excel is even simpler in ADS compared to SSMS. With just one click on the ‘Save As Excel’ icon, you can directly export your result set to an Excel file. No need for multiple steps. Just choose the folder, name the file, and save it. You can then open the file in Excel to view your data.
Exporting to JSON
If you need to transfer your result set to a JSON file, ADS has you covered. Click the ‘Save As JSON’ button, choose the folder to save the file to, name the file, and save it. ADS will open a new tab displaying the JSON formatted file.
Exporting to XML
Similarly, if you want to transfer your data in an XML file, ADS can handle that too. Just click the ‘Save As XML’ button, choose the folder to save the file to, name the file, and save it. ADS will open a new tab displaying the XML file.
Creating Charts
Sometimes, a graphical representation of your data is more useful than a text file. ADS allows you to export your result set directly to a chart. Simply click the ‘Chart’ button, and the chart will be displayed in the Results pane. You can customize the chart options and even save it as a Portable Network Graphics (.png) file.
Data Visualizer Extension
One of the powerful features of ADS is the ability to add extensions. The SandDance Extension for Azure Data Studio is a popular choice for creating visualizations of your data. By installing this extension, you gain access to additional functionality. Simply click the ‘Visualizer’ icon, choose the visualization type, and enjoy the visual representation of your data.
Exporting as Jupyter Notebook
If you prefer an interactive environment, ADS allows you to export your result set as a Jupyter Notebook. Click ‘Export as Notebook’, and a new tab will open with the Jupyter Notebook. You can edit the notebook, execute queries, and even run the entire notebook with a single click.
As you can see, Azure Data Studio offers a wide range of options for exporting your SQL Server data. Whether you need a simple CSV file or a complex visualization, ADS has you covered. Give it a try and see how it can enhance your data analysis and reporting workflows.
Article Last Updated: 2022-08-23