Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft SQL Azure Enterprise Application Development

You're reading from   Microsoft SQL Azure Enterprise Application Development Moving business applications and data to the cloud can be a smooth operation when you use this practical guide. Learn to make the most of SQL Azure and acquire the knowledge to build enterprise-ready applications.

Arrow left icon
Product type Paperback
Published in Dec 2010
Publisher Packt
ISBN-13 9781849680806
Length 420 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Jayaram Krishnaswamy Jayaram Krishnaswamy
Author Profile Icon Jayaram Krishnaswamy
Jayaram Krishnaswamy
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Microsoft SQL Azure: Enterprise Application Development
Credits
About the Author
1. Acknowledgement
About the Reviewers
www.PacktPub.com
2. Preface
1. Cloud Computing and Microsoft Azure Services Platform FREE CHAPTER 2. SQL Azure Services 3. Working with SQL Azure Databases from Visual Studio 2008 4. SQL Azure Tools 5. Populating SQL Azure Databases 6. SSIS and SSRS Applications Using SQL Azure 7. Working with Windows Azure Hosting 8. Database Applications on Windows Azure Platform Accessing SQL Server Databases 9. Synchronizing SQL Azure 10. Recent Developments

Basic monitoring of the database


Diagnosing SQL Server database-related performance problems whether they are related to databases, execution, or transaction, is best done using the related Dynamic Management Views (DMV), a subset of those available in an on-site server. A user must have the permission to monitor or review these DMVs. Here, you will grant the permission to the user DmvMonitor who has a login001 to Bluesky.

  1. 1. Connect to SQL Azure with Server-level credentials.

  2. 2. Create a New Query to connect to Bluesky and execute the following statement:

    /* login as Server-Level Principal and execute the
    query while connected to 'Bluesky'*/
    CREATE USER DmvMonitor FROM LOGIN login001
    
  3. 3. This creates the user DmvMonitor in Bluesky.

  4. 4. Grant DmvMontior the permission to view the DMV by executing the following statement:

    /*Grant permission to view DMV*/
    GRANT VIEW DATABASE STATE TO DmvMonitor;
    
  5. 5. Now that you have a user DmvMonitor with login login001 in Bluesky database, you can run queries...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime