Sie sind auf Seite 1von 27

Designing and Developing

Applications on the Cloud


CT071-3-3-DDAC & Version VC1

Storing SQL Data in Cloud


Environment
Topic & Structure of The Lesson

• SQL Database in Azure Cloud


• SQL Database Tiers in Azure Cloud
• Databases as a Service vs. SQL Server
in a Virtual Machine
• Creating an Azure SQL Database
Instance
• Active Geo-replication

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 2 of 27


Learning Outcomes

• At the end of this topic, You should be


able to
• Evaluate SQL Database architecture in cloud
environment.
• Implement and deploy database on Azure SQL
Database.

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 3 of 27


Key Terms You Must Be Able To
Use
• If you have mastered this topic, you should be able to use the
following terms correctly in your assignments:
• Azure SQL
• Replication

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 4 of 27


Azure SQL Database

• Fully managed database solution


• Highly compatible with existing management tools
• Built-in high availability and predictable
performance as you scale out

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 5 of 27


Azure SQL Database Tiers

Tiers

Basic Standard Premium

Retired tiers

Web Business

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 6 of 27


Databases as a Service vs. SQL
Server in a Virtual Machine
SQL Database SQL Server in an Azure VM

• Standardized, interoperable, • Provides high compatibility


and scalable managed with SQL on premise.
database solution • Ideal for existing
• Contains size limits for each applications that require the
standard edition SQL installation to be
• Requires some re- customized.
architecture of existing • Requires more maintenance
applications and customization to
• Ideal for new cloud-based achieve scalability
applications

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 7 of 27


Databases as a Service vs. SQL
Server in a Virtual Machine
SQL Database SQL Server in an Azure VM
• Can be made available to • A port must be opened so
any Azure service by you can connect to the
selecting an option in SQL instance from outside
the portal of the VM
• Can be made available to • Azure Services are treated
specific IP addresses like any other outside
through the portal connection

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 8 of 27


Discussion

What business requirements would you use to determine


whether you should host SQL Standalone in an Azure VM
or use Azure SQL Databases?

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 9 of 27


Business Continuity

Business continuity refers to the mechanisms, policies


and procedures that enable a business to continue
operating in the face of disruption, particularly to its
computing infrastructure.

From a database perspective, there are four major potential


disruption scenarios:

• Local hardware or software failures


• Data corruption or deletion
• Datacenter outage
• Upgrade or maintenance errors
CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 10 of 27
Creating an Azure SQL Database
Instance
The SQL
Database
service

The server
instance

The database
instance

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 11 of 27


Azure SQL Database Tools

• SQL Server Management Studio


• Migration Tools

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 12 of 27


SQL Server Management Studio
You can connect to an Azure SQL Database using many of
the tools that you use right now such as SQL Server
Management Studio:

• First, you must add your IP address to the firewall rules


of allowed IP addresses. This is done in the
configuration page for the server
• The Server Name is viewable on the dashboard of the
database or the server
• Use SQL Server Authentication and the
username/password you set up in the creation of the
server

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 13 of 27


Visual Studio Server Explorer
You can use Server
Explorer to manage SQL
databases in the same
way as you use SQL
Server Management
Studio

The improved query


editor and updated
preview tools can be
helpful for determining
the collateral of changes
made through a SQL
script

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 14 of 27


Visual Studio Server Object
Explorer
You can use the SQL
Server Object
Explorer to manage
your local databases
or SQL databases in
Azure.

You can access the


SQL Server Object
Explorer by right-
clicking a database in
Server Explorer.

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 15 of 27


Visual Studio Data Projects

Database projects in Visual Studio allow you to:


• Place the schema of a database in-development within source control
• Publish the database to a SQL Database instance

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 16 of 27


Migration Tools

• You can use SQL Server Integration Services to define a


migration plan for on-premises databases

• SQL Database Migration Wizard analyzes your existing


database and generates a script (and bulk copy files) to
migrate your database

• Azure Websites Migration Assistant uses SQL


Management Objects to analyze your existing database
and migrate it

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 17 of 27


Securing and Recovering an
Azure SQL Database Instance
• Recovery Options for Azure SQL Database
• Azure SQL Databases Geo-Replication

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 18 of 27


Recovery Options for Azure
SQL Database
• You can count on infrastructure redundancy in the Azure data centers for
the most basic scenarios
• SQL Database also provides it’s own set of options for HADR
• Built-in replicas
• Transactions are not considered committed to the database until
they are written to the target DB, one primary replica, and two
secondary replicas
• Backup and restore
• Allows you to protect against errant transactions
• Database is backed up as a whole and can be recovered through the
portal
• The retention period (in days) of your backup is based on your
selected service tier

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 19 of 27


Recovery Options for Azure
SQL Database
• Database copy
• You can create a one-time copy of the database within the same
region
• The copy is disconnected from the source database so any future
transactions will not be applied to the copy
• The import and export service
• You can import and export BACPACK files from a database instance
either automatically or manually
• You can use this service to offer a minimum HADR option for web
and business databases that do not support the point-in-time
recovery option
• You also can use this service for custom backup and recovery
scenarios

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 20 of 27


Azure SQL Database Geo-
Replication
• Active geo-replication is available for Premium SQL Database
instances
• This feature is asynchronous by default and guarantees that replicas will
be eventually consistent
• You can replicate transactions to as many as four copies of the database
• Replicas can exist in different regions for geo-redundancy

• You can use the replica of the database as a read-only data


source in load-balancing scenarios
• Example: An application uses the primary database for line-of-business
functionality and the replica for reports

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 21 of 27


Active geo-replication

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 22 of 27


Active geo-replication
capabilities
The active geo-replication feature provides the
following essential capabilities:
• Automatic Asynchronous Replication
• Readable secondary databases
• Multiple readable secondaries
• Support of elastic pool databases
• Configurable compute size of the secondary database
• User-controlled failover and failback
• Keeping credentials and firewall rules in sync

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 23 of 27


Quick Review Question

• Explain what is Business continuity.

• From a database perspective, there are


four major potential disruption scenarios.
Identify them.

• Explain how does the Azure SQL


Database enable business continuity.

• Explain what is active geo-replication.


CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 24 of 27
Summary of Main Teaching Points

- We have learnt what is the Azure SQL


Database and its architecure.
- We have discussed the SQL Database
features that you can use to provide the
business continuity.
- We also discussed what is the Active Geo-
replication.

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 25 of 27


Question and Answer Session

Q&A

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 26 of 27


What we will cover next

• Introduction to Azure Cloud Storage

CT071-3-3-DDAC Storing SQL Data in Cloud Environment Slide 27 of 27

Das könnte Ihnen auch gefallen