Using Azure Data Studio for Cross-Platform SQL Work Note from the Data Whisperer

By Tom Nonmacher

The world of database management is rapidly evolving and with it comes the need for powerful tools that can handle these changes. One such tool is Azure Data Studio, a cross-platform database tool for data professionals using the Microsoft family of on-premises and cloud data platforms on Windows, MacOS, and Linux. This article will guide you on how to leverage Azure Data Studio for your cross-platform SQL work.

Azure Data Studio offers a modern, keyboard-focused SQL coding experience that makes your everyday tasks easier with built-in features, such as multiple tab windows, a rich SQL editor, and keyword completion. It supports SQL Server 2019, MySQL 8.0, and DB2 11.5, making it a versatile tool for database management. Furthermore, it integrates well with Azure SQL Database and Azure Synapse Analytics, providing a seamless experience for managing your data on the cloud.

Let's take a look at how we can connect to a SQL Server 2019 database with Azure Data Studio. First, we click on the server icon on the left sidebar, then click on the "New Connection" button. We then enter the server name, authentication type, and the credentials before clicking on the "Connect" button. Once connected, we can easily run queries and manage our data.


-- SQL code for creating a new table on SQL Server 2019
CREATE TABLE Employees 
(
    ID int, 
    Name nvarchar(50), 
    Position nvarchar(50), 
    Department nvarchar(50)
);

For users working with MySQL 8.0, Azure Data Studio provides an equally seamless integration. Once connected, you can easily manage your databases and run complex SQL queries. Below is a sample SQL script to create a new table in a MySQL database.


-- SQL code for creating a new table on MySQL 8.0
CREATE TABLE Customers 
(
    CustomerID int, 
    CustomerName varchar(255), 
    ContactName varchar(255), 
    Country varchar(255)
);

Azure Data Studio also provides robust support for DB2 11.5. This means you can use the same tool for managing your SQL Server, MySQL, and DB2 databases, making your work significantly easier. Here is a sample DB2 SQL script to create a new table.


-- SQL code for creating a new table on DB2 11.5
CREATE TABLE Orders 
(
    OrderID int, 
    CustomerID int, 
    EmployeeID int, 
    OrderDate date
);

In conclusion, Azure Data Studio is a powerful tool for managing and working with multiple databases across different platforms. Its versatility and integration with Azure SQL Database and Azure Synapse Analytics make it a must-have tool for any data professional. Start using Azure Data Studio today and experience the difference!




13A8C5
Please enter the code from the image above in the box below.