I’m Speaking! SQL Saturday #402 – Indianapolis
One of benefits, among several, in moving to Kentucky is the close proximity to several SQL Saturday events. I am...
2015-08-04
509 reads
One of benefits, among several, in moving to Kentucky is the close proximity to several SQL Saturday events. I am...
2015-08-04
509 reads
I am honored to be speaking at the Edmonton SQL Server User Group. I always find it humbling to be...
2015-07-20
487 reads
A few weeks ago, for TSQL Tuesday, I wrote about how I used Powershell to manage failing over clusters. At work,...
2015-07-17
1,020 reads
Well, it has finally happened. In the 7+ years that I helped to run the Omaha SQL/BI User Group, I...
2015-07-02
572 reads
This month’s T-SQL Tuesday topic is about extended events and comes from Jes Borland (B|T).
Like in most environments, we utilize...
2015-06-16 (first published: 2015-06-09)
1,886 reads
Not those Benjamin’s
Benjamin Franklin once said, “A place for everything and everything in it’s place“. While I assume that he...
2015-06-10 (first published: 2015-06-04)
3,169 reads
Whenever it is time to install a service pack every DBA silently hopes that nothing will go wrong. I would...
2015-05-28
2,106 reads
If you know me, you know it is in my nature to help. Whether it’s helping a friend move, helping...
2015-05-21
413 reads
Last week I got into a conversation with a colleague about how SQL Server grows the database. We were both fairly...
2015-05-14
1,204 reads
I have always liked the drawings done by MC Escher. Looking at his drawings has always forced me to look...
2015-05-07
427 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