Download - SQL Track: Hybrid cloud with sql server 2014

Transcript
Page 1: SQL Track: Hybrid cloud with sql server 2014

Hybrid Cloud with SQL Server 2014

Pieter Vanhove

Page 2: SQL Track: Hybrid cloud with sql server 2014

About me

Pietervanhove.azurewebsites.net

Page 3: SQL Track: Hybrid cloud with sql server 2014

Agenda

Backup and Restore Databases

SQL Server Data Files

Migrate existing SQL Server databases

Page 4: SQL Track: Hybrid cloud with sql server 2014

SQL Server backup to Windows Azure

Cost - Effective

Secure

Durable

Smart

Consistent

Page 5: SQL Track: Hybrid cloud with sql server 2014

Azure Account Container Blob

Storage Account

Adventureworks.bak

MyDatabase.bak

SQL Backup Files

Windows Azure Components

Page 6: SQL Track: Hybrid cloud with sql server 2014

SQL Server Components

• URL– http[s]://ACCOUNTNAME.Blob.core.windows.net/<CONTAINER>/

<FILENAME.bak>

• Credential

Page 7: SQL Track: Hybrid cloud with sql server 2014

T-SQL or UIBACKUP DATABASE AdventureWorks2012 TO URL = 'https://mystorageaccount.blob.core.windows.net/mycontainer/AdventureWorks2012.bak' WITH CREDENTIAL = 'mycredential' ,COMPRESSION ,STATS = 5;GO

Page 8: SQL Track: Hybrid cloud with sql server 2014

DEMO

Page 9: SQL Track: Hybrid cloud with sql server 2014

SQL Server Backup to Windows Azure Tool

Rules Backup files

Redirect

Azure Stora

ge

Page 10: SQL Track: Hybrid cloud with sql server 2014

DEMO

Page 11: SQL Track: Hybrid cloud with sql server 2014

Managed Backup to Windows Azure

Automates SQL Server backups

Retention period

Workload on the database

Supports point in time restore

Page 12: SQL Track: Hybrid cloud with sql server 2014

When is a full backup scheduled

Enabled the first time

Data growth >

1 GB

One week has passed

The log chain is broken

Page 13: SQL Track: Hybrid cloud with sql server 2014

When is a transaction log backup scheduled

No backup history

Log space>

5 MB

2 hours have passed Lagging behind

Page 14: SQL Track: Hybrid cloud with sql server 2014

Limitations

Only full and log backups

No GUI, only T-SQL

System Databases are not supported

Only blob storage

Maximum size of 1 TB

Simple recovery model is not supported

Page 15: SQL Track: Hybrid cloud with sql server 2014

DEMO

Page 16: SQL Track: Hybrid cloud with sql server 2014

Agenda

Backup and Restore Databases

SQL Server Data Files

Migrate existing SQL Server databases

Page 17: SQL Track: Hybrid cloud with sql server 2014

Data Files in Windows Azure

Windows Azure VM

On-premise box

Windows Azure Storage

DB3

DB6

DB6

DB5

DB4

DB3

DB2

DB1

Near “bottomless” storage

Off-site, geo-redundant

Fast Migration

Best suited for read workloads

Page 18: SQL Track: Hybrid cloud with sql server 2014

What do you need?

• Policy on a container

• Shared access signature (SAS)

• SQL Server Credential

CREATE CREDENTIAL [https://koherastorage.blob.core.windows.net/sqldatabasestorage]WITH IDENTITY='SHARED ACCESS SIGNATURE',SECRET = 'sr=c&si=sqlpolicy&sig=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Page 19: SQL Track: Hybrid cloud with sql server 2014

Create Database

-- Create database with data and log files in Windows Azure container.CREATE DATABASE testdb ON( NAME = testdb_dat, FILENAME = 'https://koherastorage.blob.core.windows.net/sqldatabasestorage/TestData.mdf' ) LOG ON( NAME = testdb_log, FILENAME = 'https://koherastorage.blob.core.windows.net/sqldatabasestorage/TestLog.ldf')

Page 20: SQL Track: Hybrid cloud with sql server 2014

Limitations

No Filestream

1 instance can access

the files

No geo-replication

No In-memory OLTP

Maximum size of 1 TB

No Failover Clustering

Page 21: SQL Track: Hybrid cloud with sql server 2014

DEMO

Page 22: SQL Track: Hybrid cloud with sql server 2014

Agenda

Backup and Restore Databases

SQL Server Data Files

Migrate existing SQL Server databases

Page 23: SQL Track: Hybrid cloud with sql server 2014

SQL Server VMWindows

Azure Storage

Deploy Database to a Windows Azure VM

On premise

SQL Servers

Page 24: SQL Track: Hybrid cloud with sql server 2014

BenefitsNo Windows Azure knowledge required

Multiple retry/recovery points

Not overwriting or updating existing data

Scalable for up to 1TB databases

Connection is the biggest performance limiting

Page 25: SQL Track: Hybrid cloud with sql server 2014

DEMO

Page 26: SQL Track: Hybrid cloud with sql server 2014

Agenda

Backup and Restore Databases

SQL Server Data Files

Migrate existing SQL Server databases

Page 27: SQL Track: Hybrid cloud with sql server 2014

Q & A

Page 28: SQL Track: Hybrid cloud with sql server 2014

DRHA

AlwaysOn Integration with Windows Azure

Page 29: SQL Track: Hybrid cloud with sql server 2014
Page 30: SQL Track: Hybrid cloud with sql server 2014

Thank you!

Pietervanhove.azurewebsites.net

Page 31: SQL Track: Hybrid cloud with sql server 2014

Follow Technet Belgium@technetbelux

Subscribe to the TechNet newsletteraka.ms/benews

Be the first to know

Page 32: SQL Track: Hybrid cloud with sql server 2014

Belgium’s biggest IT PRO Conference