Files
azuredatastudio/extensions/sql-database-projects
Alexander Ivanov 0f598dd30b Add sqlproj property to trace the origin of the project. (#18670)
* Add sqlproj property to trace the origin of the project.

As part of the database migration process (schema conversion, in particular) we want to be able to tell when converted schemas are being built/deployed to the actual database server. Given that we rely on the SQL Database Projects ADS extension for the compilation/deployment, we don't have too many options other than updating the said extension.

The suggested approach is to make the following changes:
1) Add new property to the sqlproj file (called `DatabaseSource`), which will maintain the origin(s) of the project. The property can contain multiple values (separated by semicolon), in case same project contains objects produced by multiple sources (extract schema, convert from another database, etc.).
2) During build and deploy actions, send the well-known values from the newly added property to the telemetry. We don't want to send any random value of the property, as it may raise some privacy concerns. Instead we define a list of the well-known values that we know do not carry any personal information and send those, if they are specified.

This change adds all necessary APIs to the SQl Database projects extension which will be consumed by our migration extensions to populate new `DatabaseSource` property.

* Use `undefined` instead of `null`

Co-authored-by: Kim Santiago <kisantia@microsoft.com>
2022-04-18 11:38:10 -07:00
..
2022-04-13 11:20:19 -07:00
2020-05-12 20:17:37 -07:00

Microsoft SQL Server Database Projects for Azure Data Studio and VS Code

Overview

Microsoft SQL Server Database Projects for Azure Data Studio and VS Code provides a way to design, edit, and publish schemas for SQL databases from a source controlled project.

VS Code

This extension is bundled into the SQL Server (MSSQL) extension for VS Code and will be installed automatically when that extension is updated or installed.

Azure Data Studio

This extension is provided as a separate extension in the marketplace.

Please report issues and feature requests here.

Getting Started with Database Projects

  • Create a new database project by going to the Projects viewlet or by searching Projects: New in the command palette.
  • Existing database projects can be opened by going to the Projects viewlet or by searching Projects: Open Existing in the command palette.
  • Start from an existing database by using the Create Project from Database from the command palette or database context menu.
  • Start from an OpenAPI/Swagger spec by using the Generate SQL Project from OpenAPI/Swagger spec command.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Privacy Statement

The Microsoft Enterprise and Developer Privacy Statement describes the privacy statement of this software.

License

Copyright (c) Microsoft Corporation. All rights reserved.

Licensed under the Source EULA.