SQL Database Projects extension (Preview)
The SQL Database Projects extension (preview) is an extension for developing SQL databases in a project-based development environment.
- Create project from a connected database.
- Create a new blank project.
- Open a Project previously created in Azure Data Studio or in SQL Server Data Tools.
- Edit project by adding or removing Table, View, Stored Procedure, or custom scripts in the project.
- Organize files/scripts in folders.
- Add references to system databases or user dacpac.
- Build single project.
- Deploy single project.
- Load connection details (SQL Windows authentication) and SQLCMD variables from deployment profile.
Watch this short 10-minute video for an introduction to the SQL Database Projects extension in Azure Data Studio:
Install the SQL Database Projects extension
Open the extensions manager to access the available extensions. To do so, either select the extensions icon or select Extensions in the View menu.
Identify the SQL Database Projects extension by typing all or part of the name in the extension search box. Select an available extension to view its details.
Select the extension you want and Install it.
Select Reload to enable the extension (only required the first time you install an extension).
Select the files icon from the activity bar or select Explorer from the View menu. A new viewlet for Projects is now available.
The .NET Core SDK is required for project build functionality and you will be prompted to install the .NET Core SDK if it cannot be detected by the extension. The .NET Core SDK (v3.1 or higher) can be downloaded and installed from https://dotnet.microsoft.com/download/dotnet-core/3.1.
It is recommended to install the Schema Compare extension alongside the SQL Database Projects extension for full functionality.
- Loading files as link is not supported in Azure Data Studio viewlet today, however the files will be loaded at the top level in tree and build will incorporate these files as expected.
- SQLCLR objects in project are not supported in .NET Core version of DacFx.
- Tasks (build/publish) are not user-defined.
- Publish targets defined by DacFx.
- WSL environment support is limited.