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.
- Adding project references and loading existing project references in Azure Data Studio viewlet is not currently supported.
- 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.
- Pre-Post deploy script adding and loading in viewlet is not supported as of today, however if you manually add these files in project they will be honored at build time.
- 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.
- Source control integration and new project creation do not automatically create .gitignore file.
- WSL environment support is limited.