Migrations v2 Source Target. VersionScript 1… 2… Migrations v2 Source Target VersionScript 1… 2… 3… 4…

Slides:



Advertisements
Similar presentations
András Belokosztolszki Managing change in the database world.
Advertisements

2012 © Trivadis BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN Welcome November 2012 Effiziente Data.
1 Constraints, Triggers and Active Databases Chapter 9.
Transact-SQL. 1. Declare float = 10 select * from customers where discnt
Fluent Migrator Chris Farrell Quick Solutions. What is it? Sean Chambers, Nate Kohari, Justin Etheredge.Net Schema Migration Tool Fluent Interface Write.Schema.Transformations.With.Net.
©2010 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice ©2011 Hewlett-Packard Development.
Creating and Altering Tables cis 407 Object Names Create Statement Alter statement Drop Statement.
USING CI & CD WITH MICROSOFT SQL SERVER Tim Giorgi Senior Software Developer Northwest Evaluation
1 times table 2 times table 3 times table 4 times table 5 times table
Using T-sql scripts. Migrating Sql Database to SQL Azure Database Create the Test Database In SQL Server Management Studio, on the File menu, point to.
Agenda Model migration vs MDS upgrade Model migration overview Model migration – how does it work? Model package Demo.
Migrating to EPiServer CMS 5 Johan Björnfot -
Module 13 Automating SQL Server 2008 R2 Management.
2015 International TechNet Wiki Summit 2015 Saeid Hasani Structured Error Handling Mechanism in SQL Server 2012 & 2014.
Introduction to PL/SQL. Procedural Language extension for SQL Oracle Proprietary 3GL Capabilities Integration of SQL Portable within Oracle data bases.
Data-tier Application, Import, Refactoring, Publish, Schema Comparison, Database Unit Testing Borislav Statev Telerik Software Academy academy.telerik.com.
Agenda Journalling More Embedded SQL. Journalling.
Module 3: Changes to Transact-SQL. Overview Accessing Object Information New Transact-SQL Syntax Changes to Objects Distributed Queries.
Compiling Mappings to Bridge Applications and Databases Melnik, Adya and Research.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Dexterity | CONFIDENTIAL 2009 MRO | Analytics | Insights 1 Stored Procedures.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
Database Introduction Section 14 – Lesson 01 Use the student note section below for further explanation of the slide content.Use the student note section.
Chapter 2: SQL – The Basics Objectives: 1.The SQL execution environment 2.SELECT statement 3.SQL Developer & SQL*Plus.
Database Change Management One solution to an often complex problem Kevin Hurwitz Headspring Systems
Database Unit Test MSSQL 2008 & VS 2010 Aung Kyaw Myo.
17-20 OCTOBER 2011 DURBAN ICC. What code-database gap? Introducing Project Codename “Juneau” William
SQL Server. اسکریپت درج مقدار در جدول USE Accounting; int; INSERT INTO Orders (CustomerNo,OrderDate, EmployeeID) VALUES (gETDATE,1); SELECT.
An Introduction to SQL Prof. Yin-Fu Huang CSIE, NYUST Chapter 4.
Stored Procedures Week 9. Test Details Stored Procedures SQL can call code written in iSeries High Level Languages –Called stored procedures SQL has.
Module 8: Implementing Stored Procedures. Overview Implementing Stored Procedures Creating Parameterized Stored Procedures Working With Execution Plans.
Web system security issues: A developer's perspective Morrison, P. Jason 9 December 2004 BAD Information Security Web system security issues:
14 Copyright © Oracle Corporation, All rights reserved. SQL Workshop.
Database Projects in Visual Studio Improving Reliability & Productivity.
1 Announcements Reading for next week: Chapter 4 Your first homework will be assigned as soon as your database accounts have been set up.  Expect an .
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Tables Learning Support
Virtual techdays INDIA │ august 2010 Data-tier Applications in Visual Studio 2010 Abhishek Kala │ Partner Technical Consultant, Microsoft Global.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
IT420: Database Management and Organization Triggers and Stored Procedures 24 February 2006 Adina Crăiniceanu
Time Remaining 20:00.
Backup Tables in SQL Server. Backup table method Cape_Codd database is used in this example 1.Righ click the database that contains the table you want.
Buckingham School
Chapter 4 An Introduction to SQL. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.4-2 Topics in this Chapter SQL: History and Overview The.
1 c6212 Advanced Database and Client Server MS SQL Server 2000 Stored Procedures and Parameters What ? Why ? How ?
SQL – Python and Databases
ONAP Deployment Configuration Contract Proposal
Making Your List and Checking It Twice
Introduction to unit and integration testing with tSQLt
SQL Server Security For Everyone
Developing Production Quality SQL Code
Times Tables.
SQL Server Security from the ground up
11/23/2018 2:35 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Advanced SQL: Views & Triggers
مقدمة في قواعد البيانات
SQL Server Stored Procedures.
MySQL Migration Toolkit
Workbench Download and install
SSDT and Database Project Basics
Dynamic SQL Example declare l_depnam varchar2(20) := 'testing'; l_loc varchar2(10) := 'Dubai'; begin execute immediate 'insert into dept values (:1,:2,:3)'
3 times tables.
6 times tables.
Triggers 7/11/2019 See scm-intranet.
Skype for Business Assessment Results
System Center Operations Manager Assessment Results
SQL Server Security from the ground up
From Cyclist to Cyclus.js Cyclus user interfaces
Samir Behara, Senior Developer, EBSCO
Presentation transcript:

Migrations v2 Source Target

VersionScript 1… 2… Migrations v2 Source Target VersionScript 1… 2… 3… 4…

VersionScript 1… 2… 3… 4… Migrations v2 Source Target VersionScript 1… 2… 3… 4… Step 1 1.Deploy and execute migration scripts

VersionScript 1… 2… 3… 4… Migrations v2 Source Target VersionScript 1… 2… 3… 4… 1.Deploy and execute migration scripts 2.Use SQL Compare to deploy remaining changes Step 1 Step 2

VersionScript 1… 2… 3… 4… Migrations v2 Source Target VersionScript 1… 2… 3… 4… 1.Deploy and execute migration scripts 2.Use SQL Compare to deploy remaining changes Step 1 Step 2 BEGIN TRANSACTION COMMIT TRANSACTION

Migrations v2 Example migration script IF some condition BEGIN EXEC some script END

Migrations v2 Example migration script (renaming MyTable to MyTable2) BIT = 1 IF (old dbo.MyTable does not exist) BEGIN = 0; END = 1 BEGIN EXEC sp_rename END

Migrations v2 Example migration script (renaming MyTable to MyTable2) BIT = 1 IF NOT EXISTS (SELECT 1 FROM [information_schema].[Tables] WHERE table_schema = 'dbo' AND TABLE_NAME = ‘MyTable') BEGIN = 0; PRINT 'Object ''[dbo].[MyTable]'' could not be found - skipping migration.'; END = 1 BEGIN EXEC sp_rename '[dbo].[MyTable]', 'MyTable2' END

VersionScript 1… 2… 3… 4… Migrations v2 Source Target VersionScript 1… 2… 3… 4… 1.Deploy and execute migration scripts 2.Use SQL Compare to deploy remaining changes Step 1 Step 2 BEGIN TRANSACTION COMMIT TRANSACTION