Query Store Questions From The Field
I have had several Query Store questions come in from customers lately. Some of the questions stemmed from things read...
2017-05-16
385 reads
I have had several Query Store questions come in from customers lately. Some of the questions stemmed from things read...
2017-05-16
385 reads
I have had several Query Store questions come in from customers lately. Some of the questions stemmed from things read...
2017-05-16
98 reads
In this video I talk about Trace Flag 1117 and how it was designed to help keep data file growth...
2017-05-16 (first published: 2017-05-05)
1,342 reads
In this video I talk about Trace Flag 1117 and how it was designed to help keep data file growth...
2017-05-05
103 reads
Discovery I ran across an issue where I had just configured database mail on a new server, went to send...
2016-07-13 (first published: 2016-07-05)
1,893 reads
Discovery I ran across an issue where I had just configured database mail on a new server, went to send...
2016-07-05
88 reads
Let me start off with a disclaimer that these thoughts on the January PASS board meeting are my own as...
2016-04-18
506 reads
Let me start off with a disclaimer that these thoughts on the January PASS board meeting are my own as...
2016-04-18
89 reads
Have you ever had the need to query Active Directory right out of SQL Server using native TSQL? There are...
2016-03-21 (first published: 2016-03-15)
3,831 reads
Have you ever had the need to query Active Directory right out of SQL Server using native TSQL? There are...
2016-03-15
153 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