
The extension provides several commands in the Command Palette for working with. View the T-SQL script execution results and messages in result view.See customize shortcuts to learn about change shortcut key bindings to mssql commands.

You can also use a shortcut ( ctrl+shift+e). Execute T-SQL script or selection of statements in the script by pressing F1 and type sqlex to run MS SQL: Execute Query command.Type sql in the editor to list T-SQL Snippets. Write T-SQL script in the editor using IntelliSense and Snippets.You can also use a shortcut ( ctrl+shift+c). Connect to a database by pressing F1 and type sqlcon to run MS SQL: Connnect command, then select a connection profile.See manage connection profiles for more information about how to create and edit connection profiles in your User Settings (settings.json) file. Create a new connection profile using command palette by pressing F1, type sqlman to run MS SQL: Manage Connection Profile command.

mssql commands and functionalities are enabled in the SQL language mode in Visual Studio Code editor. sql file extension or open a new text file ( ctrl+n) and change the language mode to SQL by pressing ctrl+k,m and select SQL. Follow the install pre-requisite steps from DotNet Core instructions.


Create and manage connection profiles and most recently used connections.Connect to Microsoft SQL Server, Azure SQL Database and SQL Data Warehouses.Welcome to mssql for Visual Studio Code! An extension for developing Microsoft SQL Server, Azure SQL Database and SQL Data Warehouse everywhere with a rich set of functionalities, including:
