Introduction
DBT (Data Build Tool) is a modern data transformation and modeling tool designed to streamline and simplify data engineering workflows. Unlike traditional ETL (Extract, Transform, Load) processes, dbt focuses exclusively on the transformation phase, leveraging SQL and YAML files. This makes it accessible to both data engineers and analysts.
With dbt’s adapter for Microsoft Fabric, you can create dbt projects and deploy them to a Fabric Data Warehouse for efficient data transformation.
To understand what dbt is, check out my article: https://www.c-sharpcorner.com/article/data-build-tool-dbt-kickstart/
Prerequisites
- Fabric SQL database
- Repository (project)
- Python version 3.7 (or higher) – While installing, check "Add Python to environment variables" so Python will be added in all the terminals
- The Microsoft ODBC Driver for SQL Server.
- Microsoft C++ Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/
- Dbt adaptor → Either dbt-fabric or dbt-SQL server (both work with Fabric SQL Database)
Let's get started.
First, we will be focusing on the creation of a Fabric SQL database.
Step 1. Create a new SQL database in Fabric.
- You need an existing Fabric capacity. If you don't, start a Fabric trial
- Enable SQL Database in Fabric via the Admin Portal Tenant Settings (Otherwise, you'll see an error: "SQL database failed to create")

- Create a Workspace in the fabric portal.

- Click New Item → SQL Database.


- This will create an empty database.

- Click on Settings → Copy the Connection String for future use.

Now, our fabric SQL database is ready. Let's focus on setting up DBT.
Step 2. Setting Up dbt.
Clone the repo
- Clone the jaffle_shop demo dbt project onto your machine.
- You can clone a repo with Visual Studio Code's built-in source control.
Or, for example, you can use the git clone command.
git clone https://github.com/dbt-labs/jaffle_shop.git
Create a profiles.yml file. Add the following configuration to profiles.yml. This file configures the connection to your warehouse in Microsoft Fabric using the dbt-sqlserver adapter.
jaffle_shop:
target: dev
outputs:
dev:
authentication: CLI
database: <put the database name here>
driver: ODBC Driver 18 for SQL Server
host: <enter your SQL analytics endpoint here>
schema: dbo
threads: 4
type: sqlserver
















Join the conversation! Your thoughts help the community grow.