Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Sep-15 1
Agenda
• Slides - 25 minutes
– What is SSDT and declarative development
– Local DB
– Creating a database project
– Project Properties
– Database References
– Pre and Post Deployment Scripts
– Build, Debug, and Publish
– Refactoring
– Lifecycle Management
• Demo - 25 minutes
• Q&A - 5 minutes
Sep-15 2
About Me…Andy Vold
Sep-15 3
What is SSDT?
Sep-15 4
Versions of SSDT
Sep-15 5
Versions of SSDT
Sep-15 6
Declarative Development
Sep-15 7
Declarative Development with SSDT
Sep-15 8
Declarative Development – Build Type Property
• Build
• Build Extension Configuration (2013 +)
• Compile
• Deployment Extension Configuration (2013 +)
• None
• Post Deploy (only one per project)
• PreDeploy (only one per project)
• RefactorLog
Sep-15 9
Declarative Development - Object Type
Sep-15 10
What is Local DB?
Sep-15 11
Local DB
As a default, SSDT
also sets your
database project to
target LocalDB
during debugging.
This means that
without any
configuration, F5 is
already wired to
build your
database project
and deploy it to
LocalDB .
Sep-15 12
Creating a SSDT Database Project
• Two Options
– Import existing
– Create new
Sep-15 13
Project Settings
• Default schema
• Database settings
• Deployment server and deployment options
• Errors & Warnings
Sep-15 14
Database References
Sep-15 15
Pre & Post Deployment Scripts
Sep-15 16
Build, Debug, and Publish
• BUILD
– Verifies all references resolve
– Verifies no syntax errors
– Builds a dacpac
Sep-15 17
Build, Debug, and Publish
• DEBUG
– Deploys the pre deployment, schema, and post
deployment to the database configured in the properties
Sep-15 18
Build, Debug, and Publish
• PUBLISH
– Deploys the pre deployment, schema, and post
deployment to the database of choice
– Can either generate a script or push change
Sep-15 19
Refactor
Sep-15 20
Refactor
Sep-15 21
Lifecycle Management
Sep-15 22
Lifecycle Management – Schema Compare
Sep-15 23
Sep-15 24
Thank you to all of our Sponsors!
Diamond Sponsors
Platinum Sponsors
Gold Sponsors
Marquee Sponsors
Silver Sponsors
SWAG Sponsors