Home NewsX Preview release of SDK-style SQL projects in Visual Studio 2022

Preview release of SDK-style SQL projects in Visual Studio 2022

by info.odysseyx@gmail.com
0 comment 10 views


SQL Server Data Tools (SSDT) ​​in Visual Studio provides a development environment for SQL Server, Azure SQL, and Synapse Data Warehouse databases based on SQL Projects. SQL Projects enable database development to be integrated directly with DevOps workflows, including the ability to convert connected databases to code and update databases from SQL Project build artifacts (.dacpac files). Microsoft.Build.SQL is a project SDK that modernizes the established capabilities of SQL Server Data Tools to improve the flexibility and compatibility of SQL projects. In the Preview 2 release of Visual Studio 17.12, Microsoft.Build.Sql SDK-style SQL projects are available as a component in Visual Studio.SQL Server Data Tools, SDK Style (Preview).”

New project ssdt.png

Key Features

Declarative development with SQL Projects creates an environment where source control contains the source of truth for the database, and the tooling provided facilitates testing and deploying changes. The Microsoft.Build.Sql Project SDK brings SQL Projects to .NET Core with an expanded feature set to improve usability in CI/CD scenarios. The Microsoft.Build.Sql Project SDK improves on the original SQL Project by:

  • Cross-platform support via .NET: In addition to .NET Framework support, Microsoft.Build.Sql supports dotnet build using .NET 6+.
  • Default inclusion of all *.sql files: While original-style projects have a detailed project file that explicitly lists each object, Microsoft.Build.Sql includes all *.sql files within the project directory tree.
  • See the modernized database: See package feed (nupkg) database components (same or different database)
  • Code Analysis Extensibility: Package Reference for Code Analysis Extensibility (coming soon!)

sidebyside.png

SQL Projects based on the Microsoft.Build.Sql SDK are easy to integrate into automated pipelines due to their lightweight dependency on the .NET SDK instead of the .NET Framework and externally managed project targets. Some examples of CI/CD concepts with SQL Project features include:

  • Build your SQL project with code analysis for continuous integration (CI) checks during pull request review.
  • Deploy to an isolated, temporary test environment or as part of a broader unit test suite.
  • From continuous staging to production deployment reports to anticipate and plan for important upcoming changes.

Tooling Compatibility

SDK style SQL Server Data Tools Based on the same project SDK (Microsoft.Build.Sql) SQL Database Projects extension for VS Code and Azure Data Studio. When projects are built in these tools or by direct command. dotnet build.dacpac build artifacts are compatible with: SqlPackage command line tool Existing Azure DevOps/GitHub Actions tasks. Instructions for converting existing source SQL projects to SDK-style SQL projects are included in SQL Projects. documentation For teams who want to explore SDK style project previews.

In Preview 2 of Visual Studio 17.12, the file extensions for SQL project files are: .sqlprojx Instead .sqlproj As part of the limitations of having original-style and SDK-style SQL projects side-by-side in Visual Studio, SDK-style SSDTs are .SQL Projek Will be used as a file extension for both original and SDK style projects in future releases. SDK style SQL Server Data Tools cannot be installed side by side with original SQL Server Data Tools, so a separate Visual Studio installation is currently recommended for your primary development environment.

SDK Installer Documentation.png

Visual Studio 17.12 preview 2 ships with SDK-style SQL projects based on Microsoft.Build.Sql 0.2.0-preview and a limited subset of the interface components from the original SQL Server Data Tools. The implementation of SSDT features, such as schema comparison and table designer, will be completed for SDK-style SQL projects in a future release of Visual Studio. As a rich developer experience, there is a significant set of features that need to be completed in Visual Studio to replace the original SQL projects with SQL projects based on Microsoft.Build.Sql. As part of the process of upgrading SSDT to SDK-style projects, we will be vetting each component for stability and performance to ensure that your experience using Visual Studio and SSDT is seamless and productive.

Roadmap for SDK-style SQL projects

As previously mentioned in this post, the package reference is: Code Analysis Extension Library is released. In future releases, SQL code analysis rules will enable you to check best practices in your SQL projects during local development and as part of your CI checks. The SQL project code analysis rules are: Scalable Additional rules may be included by community contributors or user environments.

The release candidate for Microsoft.Build.Sql, the SQL Project SDK, is nearly complete. We welcome your feedback and contributions. DacFx GitHub RepositoryThis is where the development of the SQL Project SDK, Microsoft.Build.Sql, takes place.

Start today

Download Visual Studio Preview Version And to try out the first iteration of SDK-style SQL project support in Visual Studio, install the preview of SQL Server Data Tools, SDK-style projects. We recommend a separate Visual Studio installation from your current primary development environment to avoid installing it side-by-side with the original SQL Server Data Tools. For more information about the preview of SDK-style SQL projects in Visual Studio, see Preview of SQL Server Data Tools, SDK-style projects. SSDT Documentation And your feedback is as follows: Visual Studio Developer Community.

If you are exploring the full SQL project functionality, the universal SQL Project Documentation Section It’s a good idea to get to know the entire SQL project ecosystem.

Previous posts about SQL Project, SqlPackage and DacFx





Source link

You may also like

Leave a Comment

Our Company

Welcome to OdysseyX, your one-stop destination for the latest news and opportunities across various domains.

Newsletter

Subscribe my Newsletter for new blog posts, tips & new photos. Let's stay updated!

Laest News

@2024 – All Right Reserved. Designed and Developed by OdysseyX