Welcome #sqlclone sqlclonefeedback@red-gate.com What problems do - - PowerPoint PPT Presentation

welcome
SMART_READER_LITE
LIVE PREVIEW

Welcome #sqlclone sqlclonefeedback@red-gate.com What problems do - - PowerPoint PPT Presentation

Welcome #sqlclone sqlclonefeedback@red-gate.com What problems do we face when provisioning databases? Grant Fritchey Problem: Realistic Data Matching production volumes Mirroring data distribution of real data Repeatable testing


slide-1
SLIDE 1
slide-2
SLIDE 2

Welcome

#sqlclone

sqlclonefeedback@red-gate.com

slide-3
SLIDE 3
slide-4
SLIDE 4

What problems do we face when provisioning databases?

Grant Fritchey

slide-5
SLIDE 5

Problem: Realistic Data

  • Matching production volumes
  • Mirroring data distribution of real data
  • Repeatable testing
  • Accurate testing and evaluation
slide-6
SLIDE 6

Problem: Drive Space

  • Multiple teams and multiple branches
  • Realistic data
  • Isolated environments
  • 8x the amount of production data
slide-7
SLIDE 7

Problem: Shared Environments

  • Multiple development teams
  • Multiple developers per team
  • Multiple branches of code
  • Main branch
  • Hot fixes
  • New Development
  • Testing teams for each
slide-8
SLIDE 8

Problem: Regulatory Compliance

  • Business regulations are increasing
  • Health Care
  • Banking
  • Insurance
  • Mens rea
  • International compliance (GDPR)
  • Cost of data breaches!
slide-9
SLIDE 9

Problem: General Data Cleanliness

It’s not just about regulations & jail…

  • Email
  • Customer info
  • Special needs for testing or business
slide-10
SLIDE 10

Do more with the same you

  • More development teams, more testing teams and

more projects

  • Must meet more and growing list of requirements
  • Same DBA team

sqlclonefeedback@red-gate.com

slide-11
SLIDE 11

Alexa… clone my database

slide-12
SLIDE 12
slide-13
SLIDE 13

How SQL Clone helps you solve these provisioning problems

Steve Jones and Richard Macaskill

slide-14
SLIDE 14

What is SQL Clone

“SQL Clone is a database provisioning tool that lets you create ‘full-sized’ copies

  • f SQL Server databases and backups in

in secon

  • nds

ds, using around 40MB MB of dis isk k space ce per clone.”

slide-15
SLIDE 15

How does SQL Clone work?

  • 1. Create a data image of a live SQL Server

database or backup

  • 2. Create clones from your data image on

any machine that can access the file

slide-16
SLIDE 16

Demo

slide-17
SLIDE 17

What can SQL Clone do for you?

 Realistic data  More drive space  Isolated environments  Do more with the same you!

 Fast small restores  Automate jobs  Self-service of clones

sqlclonefeedback@red-gate.com

slide-18
SLIDE 18
slide-19
SLIDE 19

Using PowerShell with SQL Clone to automate provisioning jobs

Richard Macaskill and Steve Jones

slide-20
SLIDE 20

Tuesday Wednesday Thursday Friday Monday Tuesday

AW_20170321 AW_20170322

AW_20170323

AW_20170324 AW_20170327 AW_20170328

Daily Imag ages es: Day of the Week:

CloneA CloneB CloneC

Example #1: Create an image for the latest backup, every night

slide-21
SLIDE 21

Demo

slide-22
SLIDE 22

Example #2: Create a clone for this feature branch on every workstation

Image: Forex_20170327 (53GB) Clone: Forex-Hotfix-18554 (48MB) Clone: Forex-Hotfix-18554 (48MB) Clone: Forex-Hotfix-18554 (48MB)

CloneA CloneB CloneC

slide-23
SLIDE 23

Example #2: Create a clone for this feature branch on every workstation

SQL Clone Server http:\\cloneserver:14145 Dev-wks01 Dev-wks02 Dev-wks03 File Share \\filestore1\clone\

slide-24
SLIDE 24

Demo

slide-25
SLIDE 25
slide-26
SLIDE 26

Learn More

  • https://documentation.red-gate.com/
  • Cmdlet reference
  • Worked examples
  • https://forums.red-gate.com/
slide-27
SLIDE 27

What can SQL Clone do for you?

 Give your team their own local production-like database in seconds using a fraction of the disk space.  Allow developers to work in isolated environments without overwriting each others’ changes.  Test against realistic data and server settings to identify issues before they reach production.  Automate provisioning for testing on realistic data and scenarios.  Create clones during application debug to test code against realistic data.  Reduce time to analysis and fix issues in production faster.

sqlclonefeedback@red-gate.com

slide-28
SLIDE 28

Competition

slide-29
SLIDE 29
slide-30
SLIDE 30

Why are clones so small?

The technology behind SQL Clone

Chris Hurley

slide-31
SLIDE 31

Why are clones so small?

200GB 0GB 100MB 0MB

slide-32
SLIDE 32

Why are clones so small?

200GB 0GB 100MB 0MB

Data Virtualization

slide-33
SLIDE 33

Data Virtualization

200GB 0GB 200GB 0GB 200GB 0GB 600GB 0GB

.mdf df and .ldf

Production QA Development

slide-34
SLIDE 34

Data Virtualization

200GB 0GB 200GB 0GB 200GB 0GB 600GB 0GB

Production QA Development

slide-35
SLIDE 35

Data Virtualization

210GB 0GB 200GB 0GB 10GB GB 0GB

Image QA Development

slide-36
SLIDE 36

Accessing data on clones

SELECT ([Name]) FROM [Customers]

Image Dev

slide-37
SLIDE 37

Accessing data on clones

INSERT INTO [Customers] ([Name]) VALUES(N'Dave')

Image Dev

slide-38
SLIDE 38

Accessing data on clones

SELECT ([Name]) FROM [Customers]

Image Dev

slide-39
SLIDE 39

Built on Microsoft technologies

  • Windows Virtual Disk Service
  • Windows Shadow Copy Service
  • SQL Server backup, restore, and attach
slide-40
SLIDE 40

Making an image

Windows Virtua ual l Hard Disk Servi vice ce Image ge VHD

slide-41
SLIDE 41

Making an image from a database

MDF LDF

Windows Shadow Copy Servi vice ce

MDF LDF MDF LDF

slide-42
SLIDE 42

Making an image from a database

MDF LDF

Image ge VHD

MDF LDF

slide-43
SLIDE 43

Making an image from a backup

Image ge VHD

MDF LDF

SQL Serve ver instanc ance Backup up

slide-44
SLIDE 44

Making a clone

Image ge VHD

MDF LDF

\\fileser eserver ver\sha share re

slide-45
SLIDE 45

Making a clone

Image ge VHD

MDF LDF

\\fileser eserver ver\sha share re Windows Virtua ual l Hard Disk Servi vice ce Clone e VHD

slide-46
SLIDE 46

Making a clone

Image ge VHD

MDF LDF

\\fileser eserver ver\sha share re Windows Virtua ual l Hard Disk Servi vice ce Clone e VHD

slide-47
SLIDE 47

Making more clones

Image ge VHD

MDF LDF

\\fileser eserver ver\sha share re Clone e VHD Clone e VHD

slide-48
SLIDE 48

Things to remember

  • Unchanged data is always read from the image
  • Changing the database will make changes to the clone’s local

data files

  • The image is never modified – every clone is isolated and is

safe to delete and reset

slide-49
SLIDE 49

Summary

  • Data virtualization is used to make clones so small
  • SQL Server sees the clone database as being on a local disk, but only

changes are stored locally

  • This is powered by the Windows Virtual Hard Disk service and either the

Shadow Copy Service or SQL Server backup restore sqlclonefeedback@red-gate.com