Post on 23-Dec-2015
SQL Azure Administration and Application Self-Servicing
Michal LesiczkaProgram ManagerMicrosoft Corporation
Vinod Jagannathan Program ManagerMicrosoft Corporation
DBI326
Agenda
Context and Role DefinitionSQL Azure Management SQL Azure Troubleshooting
Who is the Application Administrator?
Azure Application
SQL Azure SQL
AzureSQL
Azure
SQL Azure
Azure App
SQL Azure
Azure App
SQL Azure
SQL Azure
SQL Azure
SQL Azure
SQL Azure
Azu
re
Applic
ati
on
• Enterprise Tier 1 / Mission Critical• Small # (tens)• 1:1 Admin to App• Highly managed
• CSV• No traditional roles (devs?)• Highly automated• Multi-tenant (1 tenant per DB or Federations)• 100s – 10,000s tenants• Aggregated experience for monitoring,
troubleshooting, management is key
• Breadth/Web & Departmental Apps• Many small distinct apps• 1 DB per app• 1:N (~10) App Admin to App
Physical vs. Logical Administration
Instance
App Admin role places more focus on logical management
Security
Database
HA Configuration
Schema Creation & Management
Transparent Failovers
Load Balancing
Query Optimization
App Admin Responsibilities
App LifecyclePlan, Stage, Deploy
Import, Export, Workflows
Patch, Upgrade
Backup, Restore, Recover
Delete, Retire
App Schema
Schema editing
Ad-hoc queries
App Health
Monitoring
Diagnostics
Fixes
App Security
User management
Compliance Reports
Troubleshooting Features
Summaries and global viewsSQL Azure Management portal integration
Live TroubleshootingLimited DMV coverageExtending DMV coverageDatabase Extended Events
Historical TroubleshootingEvent Table (Logging)
SQL Azure Management Portal
SQL Azure Management Portal
Customer Complaints: How do I easily manage my SQL Azure databases?How can I easily look at query plans and troubleshoot my query?
Solution: The SQL Azure Management Portal simplifies management and troubleshooting of databases.
Database management experienceQuery performance detailsQuery plansEvent table support
demo
SQL Azure Management Portal
Database Extended Events
Database Extended Events
Customer Complaint: How do I trace the workload to understand where time is being spent and pinpoint any potential issues?
Solution: Utilize Extended Events to do live troubleshooting on databases in SQL AzureProvides consistent experience between on-premise and SQL Azure troubleshooting
demo
Database Extended Events
Live Troubleshooting using DMVs
Customer Complaint: I have a high workload but I am seeing a fairly low number of connections and sessions for my application. How can I find out what T-SQL is executing and if I can improve things?
Solution: New DMVs that provide insight into cached plans, trigger and stored procedure usage and performance.
demo
Troubleshooting using DMVs
New DMVsDMV Scenario
sys.dm_exec_query_memory_grants
Queries waiting for memory before they can be executed.
sys.dm_exec_cached_plans Execution plans that are currently in the case.
sys.dm_db_missing_index_details
Missing indexes that would increase the query performance.
sys.dm_db_missing_index_columns
Missing table columns for a given index.
sys.dm_db_missing_index_groups
Missing indexes are contained in a specific missing index group, excluding spatial indexes.
sys.dm_db_missing_index_group_stats
Groups of missing indexes, excluding spatial indexes.
sys.dm_db_index_usage_stats Information about the usage of an index.
sys.dm_db_index_physical_stats Information about the physical layout for a given index (space consumption etc).
sys.dm_db_index_operational_stats
Information about the performance for a given index.
sys.dm_exec_procedure_stats Usage of stored procedures in the database.
sys.dm_exec_trigger_stats Usage of triggers in the database.
Historical Troubleshooting using Event TableCustomer Complaint:
My application experienced issues a few days ago. Is it potentially related to a deadlock in SQL Azure?
Solution: Event table provides historical event logging inside the logical masterEvents types:
Successful connectionsConnection failuresThrottlingDeadlocks
demo
Event Table
Session Takeaways
Position the App Admin role Manage a SQL Azure application Troubleshoot a SQL Azure application
Contact Information
MichalLesiczka
mlesicz@microsoft.com
Vinod Jagannathan
vinkjag@microsoft.com
Track Resources
@sqlserver@TechEd_NA#msTechEd
mvaMicrosoft Virtual Academy
SQL Server 2012 Eval Copy
Get Certified!
Hands-On Labs
Resources
Connect. Share. Discuss.
http://northamerica.msteched.com
Learning
Microsoft Certification & Training Resources
www.microsoft.com/learning
TechNet
Resources for IT Professionals
http://microsoft.com/technet
Resources for Developers
http://microsoft.com/msdn
Complete an evaluation on CommNet and enter to win!
MS Tag
Scan the Tagto evaluate thissession now onmyTechEd Mobile
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to
be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS
PRESENTATION.