SlideShare a Scribd company logo
Database & Source Control 9 giugno
2016
Sponsored by
Anche con SQL Server si può
Sponsor
Presenting...
http://www.devopsheroes.net/
Alessandro Alpi
Microsoft MVP – SQL Server dal 2008
Blog ITA: http://blogs.dotnethell.it/suxstellino
Blog ENG: http://suxstellino.wordpress.com/
Website: http://www.alessandroalpi.net
CTO Engage IT Services S.r.l.
www.engageitservices.it
Team leader (SCRUM)
Communities
Getlatestversion.it
Cos’è
Repository per
Gestore dei cosiddetti changes (revisioni dei nostri file)
Storage sicuro
Gestire il lavoro (anche e soprattutto) in team
Sinonimo di Version Control
Parte di un Software Configuration Management
Cosa non è? Uno storage per tutto
1/7
DB SC
Perché si usa
Elemento base per i processi a pattern «continuous»
Continuous Integration (integrazione continua dei cambiamenti in sviluppo)
Continuous Delivery (evoluzione della precedente, «finisce» con UAT e un rilascio)
Continuous Deployment (sinonimi, delivery ~ deploy, per alcune scuole)
Revisioni
Collaborazione e condivisione
Restore delle versioni e backup
Per cosa non si usa? I film scaricati 
2/7
DB SC
Ok, e su database?
Condivisione del database nel team
Sincronizzazione dei database
Invio dei changeset a database
Revisioni del codice
Di programmabilità
Di Data Definition Language (schema)
Di Data Control Language (security)
Di dati statici
I dati utente? Non sono da source control!
3/7
DB SC
Com’è fatto
Repository
Modalità centralizzata (uno solo «a server»)
Modalità distribuito (più copie del repository)
API
Comandi per copiare il repository (distribuito)
Comandi per scaricare il repository
Comandi per inviare i changeset
Modalità
Condivisa (centralizzata, un solo database)
Dedicata (distribuita, più database)
E le branch? Sessione di Igor! 
4/7
DB SC
Dedicata Condivisa
Cosa c’è dietro le quinte
Working base folder
Copia locale del database scaricato
Copia locale dei cambiamenti
Transient folder
Ultima versione effettiva su source control
Comparazione
La Working base è sincronizzata con le revisioni
La Working base viene comparata con la transient per generare le diff
SSMS come vede i cambiamenti? Polling di una dll 
5/7
DB SC
La linea del tempo.. 5/7
DB SC
Sql Server Management
Studio IDE
Working folder
File “.sql”
Development
Team Explorer to
Source Control
Code, History and
Changesets
Save Send
GetApply
Repository
Ci sono strumenti..
IDE di gestione
RedGate SQL Source Control (attualmente v5 in RC)
ApexSQL Source Control
Integrati a Sql Server Management Studio
Sono IDE che usano API per accedere a SC
7/7
DB SC
DEMO 1 – RedGate SoC v5 con VSTS (link + get)
Modalità dedicata + working folder
Utilizzo di VS Team Explorer
Link + get del database
DEMO 2 – RedGate SoC v5 con VSTS (new/edit items)
Modifica oggetti
Aggiunta dati
DEMO 3 – RedGate SoC v5 con VSTS (remove items)
Rimozione oggetti
Rimozione dati
DEMO 4 – RedGate SoC v5 con VSTS (filtri e options)
Filtri
Comparison options
DEMO 5 – RedGate SoC v5 con VSTS (migrations)
Migrations e refactor iniettati
se ci stanno, altrimenti due chiacchiere
Grazie
•Domande?

More Related Content

PPTX
Universal app ma universal per davvero
PPTX
Branching & Merging strategies (with TFS)
PPTX
Introduzione a git
PPTX
Azure Application Insights
PPTX
Crea servizi REST per la tua App con ASP.NET 5
PPTX
Quick intro sul Source Control su SQL Server
PPTX
SonarQube e il debito tecnico - Matteo Emili
PPTX
Asp.Net MVC 5
Universal app ma universal per davvero
Branching & Merging strategies (with TFS)
Introduzione a git
Azure Application Insights
Crea servizi REST per la tua App con ASP.NET 5
Quick intro sul Source Control su SQL Server
SonarQube e il debito tecnico - Matteo Emili
Asp.Net MVC 5

What's hot (20)

PPTX
[ITA] Sql Saturday 355 in Parma - New SQL Server databases under source control
PPTX
Tfs Basic - Quick Intro
PPTX
Le novità di Visual Studio 2015 per lo sviluppatore ASP.NET
PPTX
What's new in Asp.Net 4.5 (and WebApi)
PPTX
Creare App per Office 365 con ASP.NET MVC 5
PPTX
Php for ASP.NET Developers
PPTX
Tutto su ASP.NET Identity
PPTX
Sviluppare Azure Web Apps
PPTX
ALM Revolutions - What's new in visual studio ALM 11
PPTX
Php Day 2009:Un Salto Nel Buio
PPTX
[ITA] SQL Saturday 257 - Put databases under source control
PDF
Delphi and ExtJS (26 ottobre 2017)
PPTX
Dot netcampus2015 green-template
PPTX
DevOps by examples - Agile O'Day 2017
PDF
ASP.NET Core - Razor Pages
PDF
Meetup PrestaShop Torino [IT]
PPTX
Dal requisito all'implementazione @ CD2010
PPTX
ASP.NET performance optimization
PDF
Cloud Google App Engine Paas
PDF
Web app slots and WebAPI versioning
[ITA] Sql Saturday 355 in Parma - New SQL Server databases under source control
Tfs Basic - Quick Intro
Le novità di Visual Studio 2015 per lo sviluppatore ASP.NET
What's new in Asp.Net 4.5 (and WebApi)
Creare App per Office 365 con ASP.NET MVC 5
Php for ASP.NET Developers
Tutto su ASP.NET Identity
Sviluppare Azure Web Apps
ALM Revolutions - What's new in visual studio ALM 11
Php Day 2009:Un Salto Nel Buio
[ITA] SQL Saturday 257 - Put databases under source control
Delphi and ExtJS (26 ottobre 2017)
Dot netcampus2015 green-template
DevOps by examples - Agile O'Day 2017
ASP.NET Core - Razor Pages
Meetup PrestaShop Torino [IT]
Dal requisito all'implementazione @ CD2010
ASP.NET performance optimization
Cloud Google App Engine Paas
Web app slots and WebAPI versioning
Ad

Viewers also liked (18)

PDF
Don’t await … try async/await !
PPTX
There is a bot for that
PDF
Introduzione a ReactiveX
PPTX
The five dysfunctions of a team
PDF
A Quick Intro to ReactiveX
PDF
The Five Dysfunctions of a Team
PDF
La muerte del silo - CAS2016
PDF
Five Dysfunctions Of A Team
PDF
The five dysfunctions of a team
PPT
The 5 dysfunctions of a team: a PowerPoint presentation of Lencioni's book
PDF
Leadership Tools for Better Teams - Personal History Exercise - 20150615
PDF
Patrick Lencioni’s Five Team Dysfunctions
PDF
The 5 Dysfunctions of a Team
PDF
Building Better Teams - Overcoming the 5 Dysfunctions
PPT
The 5 dysfunctions of a team Management Presentation
PPTX
Building teams that excel - Creating trust in teams
PPT
The Five Dysfunctions of a Team
PPT
Our Iceberg Is Melting
Don’t await … try async/await !
There is a bot for that
Introduzione a ReactiveX
The five dysfunctions of a team
A Quick Intro to ReactiveX
The Five Dysfunctions of a Team
La muerte del silo - CAS2016
Five Dysfunctions Of A Team
The five dysfunctions of a team
The 5 dysfunctions of a team: a PowerPoint presentation of Lencioni's book
Leadership Tools for Better Teams - Personal History Exercise - 20150615
Patrick Lencioni’s Five Team Dysfunctions
The 5 Dysfunctions of a Team
Building Better Teams - Overcoming the 5 Dysfunctions
The 5 dysfunctions of a team Management Presentation
Building teams that excel - Creating trust in teams
The Five Dysfunctions of a Team
Our Iceberg Is Melting
Ad

Similar to Database under source control (20)

PPTX
DotNetCampus - Continuous Integration con Sql Server
PPTX
CONTINUOUS INTEGRATION CON SQL SERVER
PPTX
[ITA] SQL Saturday 264 - Put databases in ALM backgrounds
PPTX
DevOpsHeroes 2016 - Realizzare Continouous Integration con SQL Server e Visua...
PPTX
PASS Virtual Chapter - SQL Server Continuous Integration
PPTX
Database Project in Visual Studio 2010
PDF
Confio Ignite - webinar by Matteo Durighetto
PPT
Installazione del cms alfresco
PPTX
Implementare e mantenere un progetto azure sql database v.2
PDF
Struttin' on, novità in casa Struts
PPTX
Database project alla riscossa
PPTX
Autumn Event Vicenza
PPT
Oracle 1
PPTX
2014.11.14 Implementare e mantenere un progetto Azure SQL Database
PDF
SPRING - MAVEN - REST API (ITA - Luglio 2017)
PPT
Corso Avanzato Alfresco Ecm
PDF
DDive - 8.5.2 Xpages - L'evoluzione continua
PPTX
Webcast - Introduzione a Visual Studio Online
PPTX
2014.11.14 Implementare e mantenere un progetto Azure SQL Database
DotNetCampus - Continuous Integration con Sql Server
CONTINUOUS INTEGRATION CON SQL SERVER
[ITA] SQL Saturday 264 - Put databases in ALM backgrounds
DevOpsHeroes 2016 - Realizzare Continouous Integration con SQL Server e Visua...
PASS Virtual Chapter - SQL Server Continuous Integration
Database Project in Visual Studio 2010
Confio Ignite - webinar by Matteo Durighetto
Installazione del cms alfresco
Implementare e mantenere un progetto azure sql database v.2
Struttin' on, novità in casa Struts
Database project alla riscossa
Autumn Event Vicenza
Oracle 1
2014.11.14 Implementare e mantenere un progetto Azure SQL Database
SPRING - MAVEN - REST API (ITA - Luglio 2017)
Corso Avanzato Alfresco Ecm
DDive - 8.5.2 Xpages - L'evoluzione continua
Webcast - Introduzione a Visual Studio Online
2014.11.14 Implementare e mantenere un progetto Azure SQL Database

Database under source control

  • 1. Database & Source Control 9 giugno 2016 Sponsored by Anche con SQL Server si può
  • 4. Alessandro Alpi Microsoft MVP – SQL Server dal 2008 Blog ITA: http://blogs.dotnethell.it/suxstellino Blog ENG: http://suxstellino.wordpress.com/ Website: http://www.alessandroalpi.net CTO Engage IT Services S.r.l. www.engageitservices.it Team leader (SCRUM) Communities Getlatestversion.it
  • 5. Cos’è Repository per Gestore dei cosiddetti changes (revisioni dei nostri file) Storage sicuro Gestire il lavoro (anche e soprattutto) in team Sinonimo di Version Control Parte di un Software Configuration Management Cosa non è? Uno storage per tutto 1/7 DB SC
  • 6. Perché si usa Elemento base per i processi a pattern «continuous» Continuous Integration (integrazione continua dei cambiamenti in sviluppo) Continuous Delivery (evoluzione della precedente, «finisce» con UAT e un rilascio) Continuous Deployment (sinonimi, delivery ~ deploy, per alcune scuole) Revisioni Collaborazione e condivisione Restore delle versioni e backup Per cosa non si usa? I film scaricati  2/7 DB SC
  • 7. Ok, e su database? Condivisione del database nel team Sincronizzazione dei database Invio dei changeset a database Revisioni del codice Di programmabilità Di Data Definition Language (schema) Di Data Control Language (security) Di dati statici I dati utente? Non sono da source control! 3/7 DB SC
  • 8. Com’è fatto Repository Modalità centralizzata (uno solo «a server») Modalità distribuito (più copie del repository) API Comandi per copiare il repository (distribuito) Comandi per scaricare il repository Comandi per inviare i changeset Modalità Condivisa (centralizzata, un solo database) Dedicata (distribuita, più database) E le branch? Sessione di Igor!  4/7 DB SC Dedicata Condivisa
  • 9. Cosa c’è dietro le quinte Working base folder Copia locale del database scaricato Copia locale dei cambiamenti Transient folder Ultima versione effettiva su source control Comparazione La Working base è sincronizzata con le revisioni La Working base viene comparata con la transient per generare le diff SSMS come vede i cambiamenti? Polling di una dll  5/7 DB SC
  • 10. La linea del tempo.. 5/7 DB SC Sql Server Management Studio IDE Working folder File “.sql” Development Team Explorer to Source Control Code, History and Changesets Save Send GetApply Repository
  • 11. Ci sono strumenti.. IDE di gestione RedGate SQL Source Control (attualmente v5 in RC) ApexSQL Source Control Integrati a Sql Server Management Studio Sono IDE che usano API per accedere a SC 7/7 DB SC
  • 12. DEMO 1 – RedGate SoC v5 con VSTS (link + get) Modalità dedicata + working folder Utilizzo di VS Team Explorer Link + get del database
  • 13. DEMO 2 – RedGate SoC v5 con VSTS (new/edit items) Modifica oggetti Aggiunta dati
  • 14. DEMO 3 – RedGate SoC v5 con VSTS (remove items) Rimozione oggetti Rimozione dati
  • 15. DEMO 4 – RedGate SoC v5 con VSTS (filtri e options) Filtri Comparison options
  • 16. DEMO 5 – RedGate SoC v5 con VSTS (migrations) Migrations e refactor iniettati se ci stanno, altrimenti due chiacchiere