Isolated Database Environments Kevin Howell February 2014.

Slides:



Advertisements
Similar presentations
Black marble the strategic IT asset for your organisation DEVELOPMENT LIFE CYCLE USING VISUAL STUDIO TEAM EDITION FOR DB PROFESSIONALS Richard Fennell.
Advertisements

Development Life Cycle using Visual Studio Team Edition for DB Professionals Richard Fennell Engineering Director SQLBits II Birmingham 1 st March 2008.
Black marble the strategic IT asset for your organisation MAKING THE SQL DEVELOPER ONE OF THE FAMILY WITH VISUAL STUDIO TEAM SYSTEM Richard Fennell Engineering.
HP Quality Center Overview.
Eralp Erat Senior Software Developer MCP,MCAD.NET,MCSD.NET.
Visual Studio Online. What it Provides Visual Studio Online, based on the capabilities of Team Foundation Server with additional cloud services, is the.
Validata Release Coordinator Accelerated application delivery through automated end-to-end release management.
Visual Studio Team System (VSTS). Richard Hundhausen Author of software development books Microsoft Regional Director Microsoft MVP (VSTS) MCT, MCSD,
Mike Azocar Sr. Developer Technical Specialist Microsoft Corporation
BizTalk Deployment using Visual Studio Release Management
Improving Software Quality with Continuous Integration
By John Boal  Continuous Integration [CI] ◦ Automating the build process ◦ Build the entire system each time any new.
The Integration Story: Rational Quality Manager / Team Foundation Server / Quality Center Introductions This presentation will provide an introduction.
SHARE POINT 2010 TRINAY TECHNOLOGY SOLUTIONS © Copyright Trinay Technology Solutions, 39 Buckland St, #5321 Manchester, CT
QWise software engineering – refactored! Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.
Development Best Practices Concepts & Microsoft’s Approach.
October 30, 2008 Extensible Workflow Management for Simmod ESUG32, Frankfurt, Oct 30, 2008 Alexander Scharnweber (DLR) October 30, 2008 Slide 1 > Extensible.
Team Foundation Server 2012 Builds: Understand, Configure, and Customize Benjamin Day.
Source Code Control CSE 3902 Matt Boggus. Source code control options for CSE 3902 Must use source code control that is integrated with Visual Studio.
Version control Using Git Version control, using Git1.
Database Change Management One solution to an often complex problem Kevin Hurwitz Headspring Systems
Virtualisation of the Test Environment
A Networked Machine Management System 16, 1999.
Database Agility Pramod Sadalage ThoughtWorks. © ThoughtWorks, Inc.© Agile.Database:// Introduction The Traditional Database Continuous changes.
N from what language did C++ originate? n what’s input, output device? n what’s main memory, memory location, memory address? n what’s a program, data?
Database projects in visual studio 2010 Anthony Brown
Database Projects in Visual Studio Improving Reliability & Productivity.
BODY From Source Code Management to Daily Build Soren Klemmensen, Kamil Sacek & Luc van Vugt
Infrastructure as code. “Enable the reconstruction of the business from nothing but a source code repository, an application data backup, and bare metal.
Team Foundation Server 2010 Introductory presentation.
Welcome to Azure App Services! Amie Seisay
Automated tests CustomWare.Net. Goals Quality Finding problems before delivering Stability Upgrade projects Downgrade Refactoring Deacreasing of manual.
Real World SQL Server Data Tools Benjamin
Neil Kidd Developer Tools Technical Specialist Microsoft UK.
Visual Studio 2012: A Complete IDE (Debugging & Source Control) Kevin Howell.
TEAM FOUNDATION VERSION CONTROL AN OVERVIEW AND WALKTHROUGH By: Michael Mallar.
Lab 301 Populating Template Data from a Third Party Data Source Justin Pava, Software Release Manager Andrew Schoonmaker, Software QA Engineer.
Continuous Deployments using SSDT
YOUR LOGO Phase 2 International Providing critical business software solutions at affordable prices.
V7 Foundation Series Vignette Education Services.
Developing SQL/Server database in Visual Studio Introducing SQL /Server Data Tools Peter Lu.Net Practices Director Principle Architect Nexient March 19.
Automation Build TFS 2010 Trainer: Eran Ruso. Training Agenda Team System Introduction SCM – Classic – Feature Crus Team Build 2010.
Source Control Repositories for Enabling Team Working Doncho Minkov Telerik Corporation
Managing multiple projects or services? Have a mix of Microsoft Project and more simple tasks? Need better visibility and control?
NALINI S. NAUTIYAL SYSTEM SOFTWARE DIVISION Subversion.
Tools and technology usage in PFMS application lifecycle management process LEPL Financial-Analytical Service, Ministry of Finance October, 2015 Dimitri.
TRINAY TECHNOLOGY SOLUTIONS
Agile Analytics: Automated Builds and Deployments
SQL Server deployments
Computer Terms Review from what language did C++ originate?
Continuous Deployments using SSDT
Introduction to Team Foundation Server 2010
Dumps4download 2018 Microsoft Dumps | PDF - Free Try
SQL Server Data Tools Gert Drapers
X in [Integration, Delivery, Deployment]
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Continuous Deployments using SSDT
Continuous Deployments using SSDT
Continuous Deployments using SSDT
Paul S Waters Getting Git.
Presented by : Chirag Dani & Dhaval Shah
SSDT and Database Project Basics
Introduction to VSTS Database Professional
4/20/ :00 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Computer Terms Review from what language did C++ originate?
Keeping your SQL Code safe
Welcome to Architect Insight 2010
Introduction To GitHub
Samir Behara, Senior Developer, EBSCO
Git in Visual Studio.
Presentation transcript:

Isolated Database Environments Kevin Howell February 2014

 Why?  Implementation Process  Pre – Isolated Database Environment Workflow  Schema & Data Workflow  Manual Source Control  Red Gate (Management Studio)  TFS (Visual Studio)  Isolated Database Environment  Schema & Data Lifecycle  TFS – Central to Local Repository Automation  TFS – Local Repository to Database Automation  Red Gate - Database to Database Automation Agenda

 Driven by Agile software development  Incremental development by Iterations  Teamwork & Collaboration  Allow developers to work on specific tasks independent of external changes  Facilitates loss-free integration with modified environments after development is complete  Provide versioning of schema to provide rollback capability IDBE – Why?

 Determine which processes need to be reproducible in a development environment  Run traces against the existing test environment to determine databases, schema and data that will be needed  Create a TFS solution with the baseline databases and schema  Implement a process to move objects and data between the development server, TFS and the developer machine Implementation Process

Schema & Data Workflow Development StagingProduction Pre – Isolated Database Environment Testing

 Red Gate (Management Studio)  Visual indication of changes on shared SQL Server  Review & Commit changes by database  Allows source control of lookup table data Manual Source Control

Red Gate (Management Studio)

 TFS (Visual Studio)  Allows both code and database development in a single environment  Follows the TFS practices of source control for version tracking and management  Entire project or server can be updated or committed to the central repository Manual Source Control

TFS (Visual Studio)

 (1) The developer environment will be updated with the latest schema and data from the control repositories. This is accomplished with a.NET utility which will run all 3 parts in succession.  (a) Move the schema changes from the central TFS repository to the local TFS repository for all databases  (b) Move the schema changes from the local TFS repository to the local databases  (c) Move the data changes from the central development databases to the local databases  (2) Developer will develop in either Visual Studio or SSMS and maintain their local TFS repository for further promotion. It is the responsibility of the developer to keep the local database and the local TFS repository in sync for all schema changes.  (3) Developer will push any schema changes to the central TFS repository when changes have been unit tested and ready for integration and regression testing  (4) An automated nightly process will push the schema changes from the central TFS repository to the central development database  (5) Developer will manually push any data changes to the central development database for further testing Schema & Data Lifecycle

 Use Team Foundation Clients in Visual Studio  Get the latest version of source code (schema) from the TFS repository  Need 3 references and declarations added to project  Microsoft.TeamFoundation.Client  Microsoft.TeamFoundation.VersionControl.Client  System.IO (1a) TFS Central to Local Repository Automation

Form Code

 Command Line call to publish from a DACPAC file to a SQL Server database  For Visual Studio 2010 and before, use VSDBCMD.EXE  For Visual Studio 2012 and later, use SQLPackage.EXE  Located in C:\Program Files\Microsoft SQL Server\110\DAC\bin or C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin  Need 2 references and declarations added to project  Microsoft.Build.Evaluation  Microsoft.Build.Logging (1b) TFS Local Repository to Database Automation

 First Build the project:  Then deploy with SQLPackage Command line utility:

 Database to Database  Command line utility (Pro Version)  Can log changes for schema updates (not data)  Use tags to designate objects for comparison  The will include any objects containing the string  The tag will explicitly exclude objects  Use the tag to execute the comparison update (1c) Red Gate Automation

 Command Line Example (1c) Red Gate Automation

Red Gate Automation - Data

 The IDBE project will provide independent development opportunities for large team collaboration, while adding security of source control and details about schema changes  This project and workflow is a work in progress  We have proof-of-concept near completion, and will be implementing soon  Any suggestions or questions are welcome:  Conclusion

 Walkthrough: Comparing the Schemas of a Database and Database Project:   Build and Deploy Databases to an Isolated Development Environment:   How to: Configure Deployment Settings for Database and Server Projects:   VSDBCMD: Create a.dbschema File from an Existing Database:   Database Build & Deployment with TFS:   Team Foundation Version Control client API example for TFS 2010 and newer:  and-newer.aspx and-newer.aspx References

 Version Control in the TFS Client Object Model:   Connect to Team Foundation Server from a Console Application:   Get the latest from TFS to the developer PC:   Red Gate SQL Compare Requirements:   Red Gate Command Line Switches:   Red Gate Command Line Arguments:   SQLPacakge.exe  References