Implement database projects
This article explains what a warehouse database project contains and what it leaves out, and how to download a database project and use it to recreate a schema in a new warehouse.
What a database project contains
A database project is automatically implemented when you add a warehouse to source control.
It contains SQL code saved in Data Definition Language (DDL) as .sql files for the schema (definition) of items in the database, including tables, views, functions or stored procedures.
What it does not include
- It does not include data.
- It also does not include SQL security features, such as object-, column- or row-level security, or dynamic data masking.
- These could be exported manually if the features were separately written in code.
Important
Git integration cannot easily handle ALTERations to a TABLE. If you execute an ALTER TABLE, the table will be dropped and then created again, which may result in data loss.
You can then manage a warehouse schema in Azure Data Studio and Visual Studio Code using the SQL Database Projects extension.
Downloading a database project
This database project can also be downloaded:
- Go to the Home tab in the warehouse.
- Click Download SQL database project.

Copying the schema to a new warehouse
You can use this downloaded file to copy the schema to a newly created warehouse. When the warehouse is empty:
- On the main screen, click SQL database project in the Start developing section.
- Upload your SQL database project folder zipped file.

You can also do this by creating a deployment pipeline, which means that changes in one warehouse’s schema can be replicated in another warehouse’s schema.
Continue studying DP-700
This article covers Implement database projects, part of the Implement lifecycle management in Fabric section of the DP-700 study guide.
Related articles