๐งฎWhat is SSDT?
SQL Server Data Tools: The real purpose of SSDT
Hi, Iโm Wajid Khan. I am trying to explain computer stuff in a simple and engaging manner, so that even non-techies can easily understand, and delivered to your inbox biweekly. Join me on an under-the-hood tech journey.
What is SSDT? SQL Server Data Tools: The real purpose of SSDT. Where SSDT fits in your architecture
It is not SQL Server itself.
It is not SQL Server Management Studio (SSMS).
It is a development framework inside Visual Studio for treating a database like source code.
Think of it this way:
C# Project (.csproj)
โ
โผ
Compiles into an EXE/DLL
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
SQL Database Project (.sqlproj)
โ
โผ
Compiles into a Database Model (.dacpac)The real purpose of SSDT
Without SSDT, developers often work like this:
SSMS
โ
โโโ Create Table
โโโ Modify Procedure
โโโ Create View
โโโ Backup SQL ScriptProblems:
No version control
Hard to compare changes
Difficult team collaboration
Manual deployments
Easy to overwrite someone elseโs work
With SSDT:
Visual Studio
โ
โผ
Database Project
โ
โผ
Source Control (Git)
โ
โผ
Build
โ
โผ
Publish
โ
โผ
SQL ServerEverything becomes repeatable and version-controlled.
What SSDT actually builds
Many people think SSDT builds a database.
Not exactly.
It builds a database model.
SQL Files
โ
โโโ Table.sql
โโโ View.sql
โโโ Procedure.sql
โโโ Function.sql
โโโ Type.sqlโ
SQL Database Projectโ
DACPAC
(Database Model)A DACPAC (Data-tier Application Package) is a compiled representation of your database schema.
It contains:
Tables
Views
Functions
Procedures
Keys
Constraints
Types
Sequences
It does not contain your application data.
Publish Process
When you click Publish, SSDT does something very clever.
Suppose your project contains:
Vehiclewith 8 columns.
The production database contains:
Vehiclewith only 7 columns.
SSDT compares them:
Project
Vehicle
DoorNumber
PlateNumber
Capacity
โ
Database
Vehicle
DoorNumber
PlateNumberIt automatically generates:
ALTER TABLE dbo.Vehicle
ADD Capacity DECIMAL(18,2);You donโt write migration scripts yourself.
Hi, Iโm Wajid Khan. I am trying to explain computer stuff in a simple and engaging manner, so that even non-techies can easily understand, and delivered to your inbox biweekly.
Thanks for reading AASAN || Tech by Wajid Khan! Subscribe for free to receive new posts and support my work.




