6 juin 2015
Samedi SQL à Québec
Session 1 - Backup dans Azure, Bases de données hybrides (Éric Moreau)
Cette session vous montrera comment prendre des backups de vos bases de données "on premises" vers Azure. Il vous montrera aussi comment utiliser des bases de données hybrides.
Samedi SQL Québec - Database Backup & copy to Azure par Eric Moreau
1. Sauvegarde et copie de bases de
données SQL 2014 vers Azure
Éric Moreau, MVP
eric@moer.ca
www.emoreau.com
2. Qui suis-je?
Consultant indépendant (Moer inc.)
MVP depuis juillet 2004
SQL User Group co-leader de Communauté des
développeurs Microsoft de Montréal (msdevmtl.com)
Je me spécialise dans le développement d’applications
.Net (VB et C#) utilisant MS SQL Server
3. Agenda
Faire une sauvegarde (backup) vers Azure
Récupérer un backup de Azure
Faire une copie d’une base de données vers SQL Azure
4. SQL Server 2014 Developer edition installé localement
Compte Azure
Mon environnement
6. Why Do We Need Cloud DR for SQL Server?
An event can cause on-premises
SQL Server to become unavailable
‐ Temporarily (e.g. gateway failure)
‐ Permanently (e.g. flooding)
A disaster recovery site is expensive
‐ Site rent + maintenance
‐ Hardware
‐ Ops
6
11. Backing Up Through Windows Azure
Tool
Benefits
Offers one-cloud backup strategy across previous
versions of SQL Server, including 2005, 2008, and
2008 R2
Adds backup encryption to previous versions,
locally or in the cloud
Takes advantage of backup to Windows Azure
Easier to configure
http://www.microsoft.com/en-
us/download/details.aspx?id=40740
Windows Azure Tool is a standalone tool that adds backup capabilities to Windows Azure and
backup encryption to previous versions of SQL Server
13. Backup to Windows Azure
Windows
AzureBlobs
• Backing up to Azure is new to SQL
2014
• Taking a backup is easy
• Right-click your database
• Select Tasks
• Select Back Up …
14. Backup to Windows Azure
• The Destination option
now let you pick URL
• Click the Add button
15. Backup to Windows Azure
• Ensure the file name has a
.bak extension
• Otherwise, you will get
trouble restoring it!
• Set your credential
• Set the correct container
16. Backup to Windows Azure
• Open the Options tab
• You can set the
compression
• You can set the
encryption
29. 29
Key Benefits
Reduce project overhead
Speed time to market
Secure, redundant source
code
“Telenor saved 70% on test,
development and demo that could be
turned off when finished to minimize
their capital outlays,”
Marius Pedersen, Telenor Group
70%
savings
Ready
in hours,
not weeks
No
resource
limits
SQL Server Dev Tools On-Premises
Development Work Stations
SQL Server
On-Premises
Deploy
SQL Server in a
Windows Azure
Virtual Machine
Test
TFS in Windows Azure
30. What is SQL Database?
A relational database-as-a-service, fully managed by Microsoft.
For cloud-designed apps when near-zero administration and enterprise-grade capabilities are key.
Perfect for organizations looking to dramatically increase the DB:IT ratio.
Best for…
TCO
benefits
SQL Server in a VM Azure SQL Database
Scalability
Resources
31. SQL Database – ready for business-class apps
Increased from 99.9% to 99.99% uptime SLA
New service design point enables scale up of resources, delivering
predictable throughput & performance
SLA
Performance
Point-in-time-restore, geo-restore, and standard and active geo-
replication protect against human & environmental-initiated events
Azure certifications: ISO, HIPAA BAA, EU Model Clause
Auditing on SQL Database
Protection
Compliance
Hourly billing & broad set of price pointsFlexibility
32. *The 99.99% availability SLA does not apply to the existing Web and Business editions, which will continue to be supported at 99.9% availability.
here
34. Deploy DB to Windows Azure
WindowsAzure
Blobs
• To deploy a database to Windows
Azure:
• Right-click the database
• Select Tasks
• Select Deploy Database to
Windows Azure SQL Database
• Notice that a similar wizard exists to
deploy to a VM
35. • Click Next on the
Welcome dialog
Deploy DB to Windows Azure
36. • You first need to connect to the
target (Azure)
Deploy DB to Windows Azure
37. • Specify:
• Database name
• Edition of database
• Size of database
Deploy DB to Windows Azure
38. • Review the settings
and click Finish
Deploy DB to Windows Azure
40. • If anything went wrong…
Deploy DB to Windows Azure
41. • Now that you have a database in
Azure
• You can use your local SSMS to
connect to it
• Connect to server
• Ensure your IP address is trusted
in the Azure management console
Deploy DB to Windows Azure