back to home

microsoft / vscode-mssql

Visual Studio Code SQL Server extension.

View on GitHub
1,859 stars
577 forks
158 issues
TypeScriptCSSJavaScript

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing microsoft/vscode-mssql in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/microsoft/vscode-mssql)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

MSSQL extension for Visual Studio Code The **MSSQL Extension for Visual Studio Code** is designed to empower developers by providing a seamless and modern database development experience. Our goal is to make SQL development more productive and intuitive by integrating essential features such as schema management, query execution, and AI-powered assistance. Explore and Learn β€’ 🎬 Watch the demos: Explore key features through our YouTube playlist β€’ πŸ€– Watch the GitHub Copilot demos: Learn how to use GitHub Copilot to write, explain, and refactor your database schema β€’ πŸ“ Read the blog posts: Learn from use cases, walkthroughs, and product updates β€’ πŸ“– Read the documentation: Get started or go deep with our official docs β€’ πŸ—ΊοΈ Check out the roadmap: See what's coming next, including upcoming features and improvements Features The MSSQL extension provides a rich set of capabilities for SQL development. Each capability links to its detailed documentation on Microsoft Learn. General Availability | Capability | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | | Connection Dialog | Connect using parameters, connection strings, or Azure/Fabric browse. Organize connections with color-coded groups | | Object Explorer | Browse and filter database objects with type-aware search | | Query Results | View, sort, copy, and export query results | | Query Plan Visualizer | Analyze execution plans with interactive node navigation | | Table Designer | Create and manage tables with a visual interface | | Schema Designer | Visual schema modeling with drag-and-drop, auto-layout, and T-SQL script generation | | Schema Compare | Compare and synchronize schemas between databases or DACPACs | | GitHub Copilot integration | AI-assisted SQL development with natural language chat and agent mode | | Local SQL Server containers | Create and manage SQL Server containers locally | | View & Edit Data | Browse and modify table data inline without writing T-SQL | | Data-tier Application (DACPAC) | Deploy, extract, import, and export DACPAC and BACPAC files | | Fabric integration | Browse Fabric workspaces and provision SQL databases | | SQL Database Projects | Build, publish with the visual Publish Dialog, and analyze SQL projects with Code Analysis | Public Preview | Capability | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | | Schema Designer with GitHub Copilot | Natural language schema design within the visual Schema Designer | | Data API builder | Create REST, GraphQL, and MCP endpoints for SQL databases | | GitHub Copilot in Data API builder | Generate Data API builder configs using natural language | | SQL Notebooks | Jupyter-based SQL notebooks with rich results and multi-kernel support | | Query Profiler | Real-time database activity monitoring with Extended Events | Using the MSSQL Extension Follow these steps to get started with the MSSQL extension: β€’ Install Visual Studio Code and then install the **MSSQL extension** from the Extensions view or via the command palette ( , then type ). β€’ Open or create a file. To manually set language mode, press and select **SQL**. β€’ Press , type , and follow the prompts to create a profile. See manage connection profiles for advanced options. β€’ Connect to a database using > or the shortcut . β€’ Write your T-SQL script using IntelliSense and snippets. Type to explore available snippets. β€’ Run queries by selecting **MS SQL: Execute Query** from the Command Palette ( ), or use the shortcut: β€’ **Windows/Linux**: β€’ **macOS**: β€’ Customize shortcuts via the command palette or in your . See customize shortcuts for help. Resources β€’ Get started with the MSSQL extension: Step-by-step tutorial to connect and query your first database β€’ SQL Developer tutorial: Build full-stack apps using SQL Server with C#, Java, Node.js, Python, and more β€’ Local development with Azure SQL: Learn how to develop locally with Azure SQL Database β€’ Dev Containers for Azure SQL: Set up repeatable dev environments using Dev Containers β€’ Join the Discussion: Ask questions, suggest features, and engage with the community Command Palette Commands Press and type to see all available commands. Here are the most commonly used: View common commands **Connections** β€’ **MS SQL: Connect** β€” connect using connection profiles or recent connections β€’ **MS SQL: Disconnect** β€” disconnect the current editor session β€’ **MS SQL: Use Database** β€” switch to another database on the same server β€’ **MS SQL: Manage Connection Profiles** β€” create, edit, or remove connection profiles β€’ **MS SQL: Add Connection** β€” add a new connection to the Object Explorer **Queries** β€’ **MS SQL: New Query** β€” open a new SQL query file with your selected connection β€’ **MS SQL: Execute Query** β€” run T-SQL scripts, statements, or batches β€’ **MS SQL: Execute Current Statement** β€” run only the statement under the cursor β€’ **MS SQL: Cancel Query** β€” cancel a running query β€’ **MS SQL: Estimated Plan** β€” view the estimated execution plan without running the query β€’ **MS SQL: Toggle Actual Plan** β€” enable or disable actual execution plan capture **Local Development** β€’ **MS SQL: Create Container Group** β€” set up a new SQL Server container locally β€’ **MS SQL: Schema Designer** β€” open the visual schema designer β€’ **MS SQL: Schema Compare** β€” compare schemas between databases, DACPACs, or SQL projects **Data** β€’ **MS SQL: Edit Data** β€” browse and edit table data inline β€’ **MS SQL: Select Top 1000** β€” quick-select rows from a table β€’ **MS SQL: Data-tier Application** β€” deploy, extract, import, or export DACPAC/BACPAC files **C…