How to Transition from Azure Data Studio to the MSSQL Extension for Visual Studio Code

Introduction

With Microsoft ending support for Azure Data Studio, developers who relied on this lightweight tool for SQL Server and Azure SQL query building need a new solution. Fortunately, Microsoft recommends switching to the MSSQL extension for Visual Studio Code—a modern, cross-platform alternative that integrates seamlessly into your existing development environment. This guide walks you through the process, from setting up VS Code to running your first query with the MSSQL extension. By the end, you'll have a custom, efficient workspace that handles everything from database exploration to integration with GitHub Copilot.

How to Transition from Azure Data Studio to the MSSQL Extension for Visual Studio Code
Source: www.infoworld.com

What You Need

Step-by-Step Guide

Step 1: Install Visual Studio Code

If you don’t have VS Code on your machine, head to code.visualstudio.com and download the installer for your operating system. Run the installer and follow the on-screen prompts. Once installed, launch VS Code to see the welcome page—this is your new home for SQL development.

Step 2: Install the MSSQL Extension

Open the Extensions view by clicking the square icon on the left sidebar or pressing Ctrl+Shift+X. In the search bar, type MSSQL. Look for the official extension by Microsoft (it should show a green SQL logo). Click Install. After installation, you may need to reload VS Code. The extension adds SQL language support, connection management, and query execution features.

Step 3: Connect to Your Database

Press Ctrl+Shift+P to open the command palette, then type MSSQL: Connect and select it. A new panel appears asking for your server details. Enter the name of your SQL Server or Azure SQL server, choose an authentication method (Windows, SQL login, or Azure Active Directory), and provide your credentials. Optionally, specify a database name. Once you connect, you’ll see your server listed in the SQL Server explorer pane on the left.

Step 4: Explore Databases and Write Queries

With the connection active, expand the server node in the explorer to see databases, tables, views, and other objects. Right-click any object to get a context menu for common actions like Select Top 1000 Rows or Script as Create. To write a new query, open a new SQL file (File > New File > SQL) or use the command palette’s MSSQL: New Query. Type your SQL statements—the extension provides syntax highlighting and IntelliSense for tables, columns, and keywords. Execute the query with Ctrl+Shift+E or by right-clicking and selecting Execute Query. Results appear in a tab below the editor.

Step 5: Use Advanced Features

The MSSQL extension includes many power features you may have used in Azure Data Studio. For example, you can run scripts from the command line using the integrated terminal, export query results to CSV or JSON, and manage database projects. Access these through the command palette by typing MSSQL: and browsing the list. You can also set up custom shortcuts for repetitive tasks.

How to Transition from Azure Data Studio to the MSSQL Extension for Visual Studio Code
Source: www.infoworld.com

Step 6: Integrate GitHub Copilot

One of the biggest advantages of moving to VS Code is the seamless integration with AI coding assistants. If you have a GitHub Copilot subscription, install the Copilot extension (GitHub Copilot and GitHub Copilot Chat). While writing SQL queries, Copilot can suggest completions, generate whole statements from natural language prompts, and even help debug performance issues. This combination turns your editor into a smart SQL development environment.

Step 7: Customize Your Workspace

VS Code lets you tailor the interface to your workflow. Install additional extensions for database management (e.g., SQL Server (mssql) for object scripting, Database Client for multiple connections) or productivity tools like Settings Sync. You can also change the color theme, enable SQL formatting extensions, and adjust keybindings. To save your setup for reuse, use File > Preferences > Profile to create a named profile.

Tips for a Smooth Transition

Tags:

Recommended

Discover More

How to Decode the Surveillance Dangers of Canada’s Proposed Bill C-22How to Turn Your iPod Nano into a Triple-Monitor Workstation (Sort Of)10 Ways AI is Revolutionizing Software Development in 2026A Comprehensive Guide to the Top 10 Best-Selling Star Wars Games in the USKubernetes v1.36 Introduces Manifest-Based Admission Control for Irremovable Policies