Post on 27-Jan-2015
description
Hybrid Cloud with SQL Server 2014
Pieter Vanhove
About me
Pietervanhove.azurewebsites.net
Agenda
Backup and Restore Databases
SQL Server Data Files
Migrate existing SQL Server databases
SQL Server backup to Windows Azure
Cost - Effective
Secure
Durable
Smart
Consistent
Azure Account Container Blob
Storage Account
Adventureworks.bak
MyDatabase.bak
SQL Backup Files
Windows Azure Components
SQL Server Components
• URL– http[s]://ACCOUNTNAME.Blob.core.windows.net/<CONTAINER>/
<FILENAME.bak>
• Credential
T-SQL or UIBACKUP DATABASE AdventureWorks2012 TO URL = 'https://mystorageaccount.blob.core.windows.net/mycontainer/AdventureWorks2012.bak' WITH CREDENTIAL = 'mycredential' ,COMPRESSION ,STATS = 5;GO
DEMO
SQL Server Backup to Windows Azure Tool
Rules Backup files
Redirect
Azure Stora
ge
DEMO
Managed Backup to Windows Azure
Automates SQL Server backups
Retention period
Workload on the database
Supports point in time restore
When is a full backup scheduled
Enabled the first time
Data growth >
1 GB
One week has passed
The log chain is broken
When is a transaction log backup scheduled
No backup history
Log space>
5 MB
2 hours have passed Lagging behind
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
DEMO
Agenda
Backup and Restore Databases
SQL Server Data Files
Migrate existing SQL Server databases
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
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'
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')
Limitations
No Filestream
1 instance can access
the files
No geo-replication
No In-memory OLTP
Maximum size of 1 TB
No Failover Clustering
DEMO
Agenda
Backup and Restore Databases
SQL Server Data Files
Migrate existing SQL Server databases
SQL Server VMWindows
Azure Storage
Deploy Database to a Windows Azure VM
On premise
SQL Servers
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
DEMO
Agenda
Backup and Restore Databases
SQL Server Data Files
Migrate existing SQL Server databases
Q & A
DRHA
AlwaysOn Integration with Windows Azure
Thank you!
Pietervanhove.azurewebsites.net
Follow Technet Belgium@technetbelux
Subscribe to the TechNet newsletteraka.ms/benews
Be the first to know
Belgium’s biggest IT PRO Conference