Viewing Running XEvent Metadata
In the previous article, I wrote about getting into some of the metadata to take a peek at session metadata...
2015-09-08 (first published: 2015-09-03)
1,328 reads
In the previous article, I wrote about getting into some of the metadata to take a peek at session metadata...
2015-09-08 (first published: 2015-09-03)
1,328 reads
Today, I continue on with exploring some of the metadata concerning Extended Events. To date, I have explored various aspects...
2015-09-07
577 reads
The first core building block to the data that builds Extended Events is the concept around packages.
Related Posts:
Correlate Trace and XE Events December 28, 2017
SQL Servers Black Box...
2015-09-07
26 reads
Beyond the metadata in the the catalog views and DMVs, there are a few more objects that come in handy when dealing with Extended Events. I call these the...
2015-09-04
19 reads
Running session metadata, while it can be still be viewed in the catalog views, is exposed via DMVs. Putting it a slightly different way, if I query DMVs that...
2015-09-03
13 reads
When dealing with Extended Events, there are a few ways to take a look some of the metadata. Not all metadata is created equal when dealing with Extended Events....
2015-09-02
12 reads
Today will be the first of a few introductory level posts about Extended Events.
When dealing with Extended Events, there are...
2015-09-02
803 reads
The other day I wrote about that torrid love/hate relationship DBAs tend to have with working with XML. In that...
2015-09-01
763 reads
Are you rolling the dice with your love/hate relationship with XML? Tune in to see how you can ease your XML frustration along with increasing your free time to...
2015-09-01
29 reads
Picture this if you could. You inherit a new database either through the change of a job, or finding a...
2015-08-31 (first published: 2015-08-19)
2,021 reads
By Steve Jones
This is timely, as I’m currently on a boat in the Adriatic taking a...
You can find the slides and SQL scripts for my session “Spice up your...
By SQLPals
How to Clear the SSMS Cache (SSMS 21 and Later) Updated...
Comments posted to this topic are about the item Using CHOOSE()
Comments posted to this topic are about the item Re-Seeding a Broken Log Shipping...
Comments posted to this topic are about the item The DBA is Dead! Long...
We have this code that sets some status values and then queries them using the CHOOSE() function in SQL Server 2025.
CREATE TABLE Status
(
StatusID INT,
StatusDescription VARCHAR(20)
);
GO
INSERT dbo.Status
(
StatusID,
StatusDescription
)
VALUES
(0, 'Uncategorized'),
(1, 'Active'),
(2, 'Inactive'),
(3, 'Temp');
GO
SELECT CHOOSE(StatusID, 'Unknown', 'Active', 'Inactive', 'Temporary')
FROM Status;
When the SELECT runs, what is returned? See possible answers