Azure Archives - SQL XEvents https://sqlxevents.com/category/xevents/additional-products/azure/ Thu, 31 Mar 2022 18:16:53 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.4 https://sqlxevents.com/wp-content/uploads/2019/07/fav.png Azure Archives - SQL XEvents https://sqlxevents.com/category/xevents/additional-products/azure/ 32 32 176530083 Azure DB – A Quick Spelunk Into XEvents to Love https://sqlxevents.com/azure-db-a-quick-spelunk-into-xevents-to-love/?utm_source=rss&utm_medium=rss&utm_campaign=azure-db-a-quick-spelunk-into-xevents-to-love https://sqlxevents.com/azure-db-a-quick-spelunk-into-xevents-to-love/#respond Sun, 02 Jan 2022 00:23:00 +0000 https://sqlxevents.com/?p=1660 This is a very simple introduction into the creation of an Extended Event session using a template for Azure SQL DB.

The post Azure DB – A Quick Spelunk Into XEvents to Love appeared first on SQL XEvents.

]]>
This is a very simple introduction into the creation of an Extended Event session using a template for Azure SQL DB. I demonstrate the use of the GUI to configure the session quickly. After which I then script that configuration before creating the session.

The Cloud

It has been a minute since I gave much love or attention to Extended Events in Azure SQL DB. Things have changed a touch since then. We will see about some of those changes in a future article. As for this time, let’s focus on how to get a session in Azure SQL DB up and running really quick and easy.

Create a Session in Azure

I am going to keep this as easy as possible for creating a session and thus I will demonstrate how to do it from the GUI. And for those more in tune with their scripting side, there is a future article on that as well as a glimpse of a script near the end of this article.

Recall from the previous article that things in Azure SQL DB are different for Extended Events. XE is database scoped rather than server scoped (as is the case with your on-premises servers). Due to this change, finding the GUI for XE is a little different.

In order to find the GUI for XE, you must drill down into the database and then you will see “Extended Events.” (Side note, there is no XE Profiler for Azure SQL DB as of this writing.) If you right-click Sessions, you will get a menu with the option to create a New Session.

After clicking “New Session…” the familiar window for a new session will appear.

The post Azure DB – A Quick Spelunk Into XEvents to Love appeared first on SQL XEvents.

]]>
https://sqlxevents.com/azure-db-a-quick-spelunk-into-xevents-to-love/feed/ 0 1660
3 Highly Improved Help Queries for XEvents in Azure SQL https://sqlxevents.com/3-highly-improved-help-queries-for-xevents-in-azure-sql/?utm_source=rss&utm_medium=rss&utm_campaign=3-highly-improved-help-queries-for-xevents-in-azure-sql https://sqlxevents.com/3-highly-improved-help-queries-for-xevents-in-azure-sql/#respond Mon, 05 Jul 2021 17:47:00 +0000 https://sqlxevents.com/?p=1583 Finding the right event or combination of events to monitor may seem like quite a daunting task with so many events to explore and (frequently) too little familiarity with Extended Events.

The post 3 Highly Improved Help Queries for XEvents in Azure SQL appeared first on SQL XEvents.

]]>
Finding the right event or combination of events to monitor may seem like quite a daunting task with so many events to explore and (frequently) too little familiarity with Extended Events. In this follow-up article to Extended Events Help Queries, I will share another means to quickly explore the Extended Events metadata for Azure SQL in the effort to find the precise event to fit your needs.

In this article, I will be sharing a new query or two that I have used on more than one occasion to help track down the event(s) that I wanted to, at least, try while troubleshooting specific problems within the SQL Server Instance. I found these queries useful once again in a recent opportunity to help out some friends from the SQL Community. (Maybe, just maybe, these are really just a spin of other previously shared queries.) I will share the most recent experience in another follow-up post.

For the sake of posterity, I am also adding this to the MASSIVE collection of Extended Events articles.

Is There an Event that Contains pertinent Data?

In my previous article, I demonstrated how to find an event based solely on the name or description of the event. This is fantastic if the event name (or description) contains one of the magical words you have used. What if the event name or description has nothing to do with the terms you selected? Or, what if the data you seek may be attached to the event but wouldn’t necessarily stand out as a description for that event (by name or description details for that event)?

Now comes the more difficult task right? If the name or description of the event doesn’t relate to the search terms then you just might overlook a few events and be stuck…

The post 3 Highly Improved Help Queries for XEvents in Azure SQL appeared first on SQL XEvents.

]]>
https://sqlxevents.com/3-highly-improved-help-queries-for-xevents-in-azure-sql/feed/ 0 1583
Top 3 Easy Help Queries for XEvents in Azure SQL https://sqlxevents.com/top-3-easy-help-queries-for-xevents-in-azure-sql/?utm_source=rss&utm_medium=rss&utm_campaign=top-3-easy-help-queries-for-xevents-in-azure-sql https://sqlxevents.com/top-3-easy-help-queries-for-xevents-in-azure-sql/#respond Sun, 04 Jul 2021 18:29:00 +0000 https://sqlxevents.com/?p=1571 I would like to share a few quick scripts to help find some of the event information for SQL Azure when attempting to use XEvents. In the long run, these little helper queries will help make your life easier.

The post Top 3 Easy Help Queries for XEvents in Azure SQL appeared first on SQL XEvents.

]]>
When working with Extended Events (XEvents), there are times when a little more information is, well, helpful.  You know you want to use XEvents to try and monitor for a specific thing to happen.  But, sometimes, you don’t know if there is an event for that “thing”, or maybe you don’t know if there is a session already in place to do that specific task (or if it is even running). Or, maybe, you just need better information about the event to see what kind of payload is captured/delivered when it is fired.

Sometimes, this information is easy enough to find.  Sometimes, it is less than evident how to find the wanted information.  Some of the information may be visible through the GUI (if you are using SQL Server Management Studio 2012 or later), and sometimes it is just flat out easier to run a quick script.  Today, I would like to share a few quick scripts to help find some of the event information for SQL Azure when attempting to use XEvents. In the long run, these little helper queries will help make your life easier.

Does an Event Exist?

First let’s tackle the problem of discovery.  When we want to use XEvents to try and troubleshoot a problem (or to capture more information) in SQL Azure, it is really good to know if a relevant event exists.  There are many events that capture data for various different things within SQL Server. There are far fewer events available in SQL Azure (that is the subject of a different article).

That said, more events are being added on a regular basis.  More and more data is being made available to the DBA to help perform a better job and to help the DBA better understand what is really happening…

The post Top 3 Easy Help Queries for XEvents in Azure SQL appeared first on SQL XEvents.

]]>
https://sqlxevents.com/top-3-easy-help-queries-for-xevents-in-azure-sql/feed/ 0 1571