How do you manage SQL Server?
Azure Data Studio is the new (ish) open-source, cross-platform tool from Microsoft to manage and interact with your SQL Servers or PostgreSQL instances. If you haven’t used it yet, I recommend you check it out (https://docs.microsoft.com/en-us/sql/azure-data-studio).
Once upon a time, we had two tools to manage SQL Server:
The first was for queries (funnily enough). The second was for management tasks, such as taking GUI backups. The second was also named by a friend and ex-colleague as merely "The Mangler”. That might just have been relating to my TSQL though, who knows?
Microsoft then produced SQL Server Management Studio (SSMS) as your one-stop shop for all SQL Server needs. Firstly installed via media as client tools, then latterly via an independent download with release cadence of its own.
It’s now as comfortable as an old pair of slippers, and you don’t want to change. But would you walk out on Centre Court with a wooden racket? You cannot be serious.
Five reasons you should download and experiment with Azure Data Studio today:
Azure Data Studio supports notebooks, my favourite feature. You can add both code and markdown to describe, enrich and document your work for yourself and to share with others.
Here is a screenshot to demonstrate markdown. See the headings, bold, hyperlinks and italics. You can also see the result of running the command, that the notebook saves in JSON format.
Open a new query and type “sql”. An Intellisense list appears showing all the snippets you can choose. The Intellisense works in a wonderfully helpful fashion. Type “sqlcol” and the list filters to:
So the filtering works even if your combination of letters doesn’t appear consecutively.
Hit your snippet of choice to get the desired code block without the monotony of typing it out manually.
Create additional bespoke snippets via the Command Palette (Ctrl + Shift + P). Choose “Configure User Snippets” then follow the instructions in sql.json.
Azure Data Studio is extendable with many options to expand your environment and user experience. Examples are:
Hit the extensions icon which is bottom left of this screenshot to install:
Install the SandDance extension to turn your plain old result-sets into appealing visuals and graphically represent your data and find patterns. Run your query as usual, then hit the visualiser icon to see charts such as:
Connect to:
You have the option to connect to SQL Server at either the database (see master below) or instance level (localhost below).
The list goes on. You can group connections as you choose and colour-code the groups for easy navigation. Hit the connections tab to view, configure and add new connections. Here is a screenshot:
There were five features of Azure Data Studio I love. There are many more, so give it a try and see what you think.
Azure Data Studio has a modern, clean look and feel. Microsoft has based Azure Data Studio on Visual Studio Code, so if you’re used to that tool, the environment will feel familiar.
However, you are going to need that trusty old wooden racket for some time to come. There are many tasks, such as managing Analysis Services, not supported in Azure Data Studio (yet). The SSMS GUI wizards are also not available to you in Azure Data Studio. However, Microsoft updates Azure Data Studio with remarkable regularity with features and extensions added all the time. Every SQL Server professional should install, update and use both tools and be excited about what is to come.