Freecon – Oct 27 in Seattle
It is well known that there is a wealth of information within Extended Events. One can tap plenty of information about performance issues, errors, or general interest type stuff...
2015-09-23
24 reads
It is well known that there is a wealth of information within Extended Events. One can tap plenty of information about performance issues, errors, or general interest type stuff...
2015-09-23
24 reads
I want to drive home the importance of the predicate order when dealing with Extended Events. This is an important topic because it can be very helpful in maintaining...
2015-09-23
51 reads
Predicates are a significant component within the Extended Events Engine. This article discusses one of the pieces of the puzzle of predicates - comparison operators - also known as...
2015-09-22
29 reads
In the previous installment, I began covering the topic of predicates. In that article I demonstrated that there are multiple types of...
2015-09-22
842 reads
At one time or another, a predicate has been the best friend or worst enemy of the data professional. If...
2015-09-21
725 reads
A predicate is a filtering mechanism used in SQL Server to target specific data when either querying or updating rows.
Related Posts:
Short Circuiting Your Session January 5, 2019
How To:...
2015-09-21
14 reads
Maps are like a way of overloading the data type to expose more meaningful values that relate to the payload data in question. The standard data types can also...
2015-09-18
17 reads
In the last segment, I wrote about the data types for the payload of an event in Extended Events. In that...
2015-09-18
523 reads
Today I get to talk about data types within Extended Events. This also means, I hope to be able to...
2015-09-17
640 reads
Today I get to talk about data types within Extended Events. This also means, I hope to be able to bring a little more clarity to the topic.
Related Posts:
Implicit...
2015-09-17
14 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