Upcoming: Speaking on permissions at PASS Summit 2018 and 24 Hours of PASS
I’m excited to announce that I’ve been selected to present at the PASS Summit! This will be my fourth year...
2018-06-07
390 reads
I’m excited to announce that I’ve been selected to present at the PASS Summit! This will be my fourth year...
2018-06-07
390 reads
I’m excited to announce that I’ve been selected to present at the PASS Summit! This will be my fourth year speaking at the Summit, and it’s always a privilege....
2018-06-07
17 reads
I’m excited to announce that I’ve been selected to present at the PASS Summit! This will be my fourth year speaking at the Summit, and it’s always a privilege....
2018-06-07
16 reads
I’m excited to announce that I’ve been selected to present at the PASS Summit! This will be my fourth year speaking at the Summit, and it’s always a privilege....
2018-06-07
20 reads
I’m excited to announce that I’ve been selected to present at the PASS Summit! This will be my fourth year speaking at the Summit, and it’s always a privilege....
2018-06-07
13 reads
In my last post, I talked about the process of rotating your encryption keys. It’s just one of those routine...
2018-05-09 (first published: 2018-05-01)
3,030 reads
This post is part of the May 2018 T-SQL Tuesday blog challenge, “Giving Back“, from Riley Major.
It’s been quite a...
2018-05-08
203 reads
This post is part of the May 2018 T-SQL Tuesday blog challenge, “Giving Back“, from Riley Major. It’s been quite a while since I’ve participated in a T-SQL Tuesday....
2018-05-08
23 reads
This post is part of the May 2018 T-SQL Tuesday blog challenge, “Giving Back“, from Riley Major. It’s been quite a while since I’ve participated in a T-SQL Tuesday....
2018-05-08
16 reads
This post is part of the May 2018 T-SQL Tuesday blog challenge, “Giving Back“, from Riley Major. It’s been quite a while since I’ve participated in a T-SQL Tuesday....
2018-05-08
9 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