2. About.Me()
• Veritabanı Yöneticisi / Doğan Online
• Eğitimen/Danışman / Btakademi
• Kitap Yazarı
• Microsoft Certified Trainer
ismailadar@hotmail.com
http://www.ismailadar.com
İsmail
Adar
@ismailadars
3. Content.GetAgenda()
• SQL Server and Azure Relation
• SQL Server Backup & Restore On Azure
• Creating Database On Azure
• Creating and Configuring VM SQL Server On Azure
7. SQL Server 2012 CU 2 & SQL Server 2014
• Backup and restore times are
proportional to bandwidth
• Backup times fairly constant up to
1000ms latency
• Restore times proportional to latency
Example Backup Size is: 138215424 (131.8MB)
8. SQL Server Backup & Restore On Azure
•
•
•
•
•
Creating Credential
Backup to URL GUI vs TSQL
Restore From Azure
Microsoft SQL Server Backup to Windows Azure Tool
SQL Server 2014 Smart Backup
http://www.microsoft.com/en-us/download/details.aspx?id=40740
9. Backup to Windows Azure Tool
• Stand-alone Tool that adds backup to Windows Azure capabilities and backup encryption to prior
versions of SQL Server
• One Cloud Backup strategy across prior
versions of SQL Server including 2005, 2008,
and 2008 R2
• Adds backup encryption to prior versions,
locally or in the cloud
• Takes advantage of backup to Azure
• Easy configuration
http://www.microsoft.com/enus/download/details.aspx?id=40740
12. Creating Database On Azure
DB1
Native support for
SQL Server
database files
stored as
Windows Azure
blobs.
DB2
DB3
Windows Azure VM
Windows Azure
Storage
DB3
DB4
DB5
DB6
DB6
On-premise box
Benefits:
Near “bottomless” storage
Off-site, geo-redundant
No provisioning
No device management
Media safety (decay free)
Remote accessibility
Details
Can persist data or log files or both
Works with Backup to Windows Azure
Filestream not currently supported
Not supported for Failover Clustering
Supported for AlwaysOn Availability Groups
13. Creating Database On Azure
CREATE CREDENTIAL [https://mystorage.blog.core.windows.net/data]
WITH IDENTITY = ‘Shared Access Signature',
SECRET = ‘<your SAS key>
CREATE DATABASE mydb ON
( NAME = mydb_dat,
FILENAME = 'https://mystorage.blob.core.windows.net/data/mydb.mdf' )
LOG ON
( NAME = foo_log,
FILENAME = 'https://mystorage.blob.core.windows.net/data/mydblog.ldf')
Additional considerations:
• Can be combined with Delayed Durability to reduce latencies
– ALTER DATABASE … SET DELAYED_DURABILITY = { DISABLED |
ALLOWED | FORCED }
• Good candidate for use with Columnstore Indexes
– CREATE CLUSTERED COLUMNSTORE INDEX index_name …
16. Windows Azure VMs
• VMs hosted on Windows Azure infrastructure (“IaaS”)
• From Microsoft images or your own images (VHDs)
• Fast provisioning (10 minutes)
• Pay per use
• VM: By minute
• Cost depends on size and licensing (e.g. SQL)
• Network: only incoming (not outgoing)
• Storage: only used (not allocated)
• Elasticity
• 1 core / 2GB RAM / 1TB 8 cores / 56GB RAM / 16TB
• You manage the VM
• Security, patching, monitoring, etc