Keeping your SQL Code safe

Slides:



Advertisements
Similar presentations
Patterns & practices Symposium 2013 Introducing Git version control into your team Mark
Advertisements

Version Control with git. Version Control Version control is a system that records changes to a file or set of files over time so that you can recall.
Git for Version Control These slides are heavily based on slides created by Ruth Anderson for CSE 390a. Thanks, Ruth! images taken from
Chapter - 2 What is “GIT” VERSION CONTROL AND GIT BASICS.
Introduction to Version Control with SVN & Git CSC/ECE 517, Fall 2012 Titus Barik & Ed Gehringer, with help from Gaurav.
علیرضا فراهانی استاد درس: جعفری نژاد مهر Version Control ▪Version control is a system that records changes to a file or set of files over time so.
GIT An introduction to GIT Source Control. What is GIT (1 of 2) ▪ “Git is a free and open source distributed version control system designed to handle.
Version control Using Git Version control, using Git1.
…using Git/Tortoise Git
Git workflow and basic commands By: Anuj Sharma. Why git? Git is a distributed revision control system with an emphasis on speed, data integrity, and.
Information Systems and Network Engineering Laboratory II DR. KEN COSH WEEK 1.
Introduction to Version Control with Git CSC/ECE 517, Fall 2014 A joint project of the CSC/ECE 517 staff, including Titus Barik, Gaurav Tungatkar, Govind.
Introduction to GitHub Alex Bigazzi Dec. 4, 2013 ITS Lab GitHub Introduction1.
Anubha Gupta | Software Engineer Visual Studio Online Microsoft Corp. Visual Studio Enterprise Leveraging modern tools to streamline Build and Release.
Sofia Event Center May 2014 Martin Kulov Git For TFS Developers.
GIT.
Infrastructure as code. “Enable the reconstruction of the business from nothing but a source code repository, an application data backup, and bare metal.
CS 160 and CMPE/SE 131 Software Engineering February 16 Class Meeting Department of Computer Science Department of Computer Engineering San José State.
Information Systems and Network Engineering Laboratory I DR. KEN COSH WEEK 1.
Introduction to Git - Chirag Dani. Objectives Basics of Git Understanding different “Mindset of Git” Demo - Git with Visual Studio.
Technical Presentation by: David Spano. About Git (VCS) Simple Git Commands Branching Github Git GUI Summary.
Using Git with collaboration, code review, and code management for open source and private projects. & Using Terminal to create, and push commits to repositories.
BIT 285: ( Web) Application Programming Lecture 07 : Tuesday, January 27, 2015 Git.
Collaborative Git An introduction to Git with others
Others Talk, We Listen. Managing Database Projects in Visual Studio 2013.
GIT: (a)Gentle InTroduction Bruno Bossola. Agenda About version control Concepts Working locally Remote operations Enterprise adoption Q&A.
Dr. Tanusri Bhattacharya
Version Control Systems
Analysis Services in times of Continuous Integration
Source Code Control For CSE 3902 By: Matt Boggus.
Git primer Landon Cox January 19, 2017.
4 Version control (part 1)
Stress Free Deployments with Octopus Deploy
Information Systems and Network Engineering Laboratory II
LECTURE 2: Software Configuration Management
Version Control.
Version control, using Git
Git for Visual Studio Developers MARTIN KULOV, ASE
Version Control Systems
An introduction to version control systems with Git
Akshay Narayan git up to speed with RCS Akshay Narayan
Source Code Management
LECTURE 3: Software Configuration Management
Introduction to Configuration Management
Bringing DevOps to the Database
SQL Server Data Tools Gert Drapers
Git Version Control for Everyone
Johan Hedberg Microsoft Azure MVP BizTalk Server – Behind enemy lines.
Part 1: Editing and Publishing Files
Visual Studio Database Tools (aka SQL Server Data Tools)
Bringing DevOps to the Database
Delivering Business Value Faster
Git CS Fall 2018.
Your code is not just…your code
Paul S Waters Getting Git.
Introduction to Version Control with Git
Delivering Business Value Faster
GitHub 101 Using Github and Git for Source Control
Hop Aboard the Git Train – Transitioning from TFVC
Git GitHub.
SSDT, Docker, and (Azure) DevOps
Introduction to The Git Version Control System
SSDT, Docker, and (Azure) DevOps
Erik Vollebekk Application Architect
Continuous Integration and Delivery (CI/CD) in Azure Data Factory
SSDT, Docker, and (Azure) DevOps
Bringing source control to BI world!
Your code is not just…your code
05 | Testers’ Role in the DevOps World
Presentation transcript:

Keeping your SQL Code safe An introduction to GIT and SSDT for DB professionals

DB Engineer – Microsoft Certified Trainer DB Engineer / MCT Database Engineer and Microsoft Certified Trainer, passionate for performance tuning in MS SQL Server, CI/CD, Unit Testing and Python. Looking for opportunities to growing as professional and consultant. Geovanny Hernandez DB Engineer – Microsoft Certified Trainer PASS Volunteer / Data enthusiast [Moderator Part] This PASS Marathon session is presented by Geovanny Hernandez. Geovanny is a passionate about databases and teaching. He is a Database Engineer and Microsoft Certified Trainer and has more than 12 years experience in the software development. He has been working in different industries such as online games, publishing and banks, involved in migration projects, upgrades and performance tuning on MS SQL Server solutions. Geovanny is also very involved with the SQL Server community specially with the PASS Malaga Local Group in Spain and other virtual events for students and professionals in Universities from Nicaragua (Central America). [move to next slide] Originally from Nicaragua(central America) lives in Malaga, Spain with his wife and kids. Volunteer in the chapter of PASS Malaga, active member in MSDN forums and enjoys the beautiful beaches in La Costa del Sol. https://www.geohernandez.net/ me@geohernandez.net

Introduction to SSDT – A road to DB DevOps AGENDA Introduction to SSDT – A road to DB DevOps GIT and keeping your DB code under control

Introduction to SSDT A road to Database DevOps

Why do you must apply DevOps for the Database? “Our highest priority is to satisfy the customer through early and continuous delivery of valuable software”. 1st principle behind agile manifesto Answer with three key aspect : Faster, better, cheaper which finally give us stability speed stability spped

Tools for starting to work: https://docs.microsoft.com/es-es/sql/ssdt/download-sql-server-data-tools-ssdt?view=sql-server-2017#changes-in-ssdt-for-visual-studio-2019 https://www.microsoft.com/en-us/sql-server/sql-server-downloads Since VS 2019 only requires that you installa an extensión and not download a separate package for SSDT https://www.microsoft.com/en-us/sql-server/sql-server-downloads

Source Code control and automated changes SQL Server Data Tool (SSDT) Mention that SSDT is an integrated component which is part of Visual Studio ecosystem and help us to manage the lifecycle for DB Projects Source Code control and automated changes

Some benefits of using SSDT Artifact (DACPAC) Answer with three key aspect : Faster, better, cheaper which finally give us stability speed stability speed Code integrated into a project Compile time checking – No artefact is generated if you have error in your SSDT project

SQLSaturday DB

Importing an existing DB SSDT in action

SQLSaturday DB

Interacting with our Project SSDT in action You should start to modify and compare schema-publish script and show how great is …but how the manual intervention can have a negative impact.

Why is important to have an Artefact (DACPAC)? Answer with three key aspect : Faster, better, cheaper which finally give us stability speed stability spped

“All for one and one for all… SSDT in action Here you should try to show how can impact to have a Project without source control system, the changes that you did in one Project and their impact on the real DB

Why do we need a Source Control System? Why GIT – The most used source control in the programming world, every computer is a Server of the code, remember, the develop branch is forced and branch to be sync before to push changes. GIT is a distributed versioning or change tracking system. Every copy of a repository contains the entire history of changes

What exactly it means? Every computer updated keep the history of every version, it means that if the Server Computer collapse, we can easy restore it taking the project from any available sync computer. Distributed version control . Credits: Pro GIT – Scott Chacon and Ben Straub

GIT do a checksum before to store anything, everything happen in the repo GIT realizes, the SHA-1 hash algorithm, GIT doesn’t store name, use the hash value of its contents Storing changes as stream of snapshots. Credits: Pro GIT – Scott Chacon and Ben Straub

You modify files in your working tree. You selectively stage just those changes you want to be part of your next commit, which adds only those changes to the staging area. You do a commit, which takes the files as they are in the staging area and stores that snapshot permanently to your Git directory. GIT Workflow -- Working tree, staging area, and Git directory. Credits: Pro GIT – Scott Chacon and Ben Straub

Set up our Project into a repository GIT in action Open your Azure account and show the process of creating a new empty repository (called SQL Saturday) – Check if it is possible to omit the process of creating and only showing the link for a new simple article about it

Briefly summary about GIT commands GIT INIT GIT CLONE GIT ADD GIT COMMIT GIT PULL GIT PUSH GIT BRANCH (Creates a new branch) GIT MERGE Mention the importance

Mention the importance

“Pull request… Learning in action Simulate a simple process of open a PR and other user do a change

Why do you should open a Pull Request before to merge? Team Learning

A recap DevOps on Database An artifact Source Control Team working – Pull request

Thank you for attending