A Long Summer Vacation
Based on a bit of luck/happenstance I’ve been able to stretch my summer vacation to two months. I had planned...
2013-07-29
1,288 reads
Based on a bit of luck/happenstance I’ve been able to stretch my summer vacation to two months. I had planned...
2013-07-29
1,288 reads
PASS is accepting candidate applications for the 2013 election through August 7th, 2013. Later this year we – the PASS membership...
2013-07-29
638 reads
First time event in Cocoa Beach went really well!
Speaker dinner well attended Friday night at Florida’s SeafoodQuite a few...
2013-07-29
761 reads
I’m leaving mid-morning today to drive to Cocoa with my family for a beach weekend and SQLSaturday #231. I’ll be...
2013-07-26
708 reads
I’ll try to write more about these over the next couple months, but I wanted to write down a quick...
2013-07-26
1,132 reads
I’m not terribly good at putting at least one image in every post. The images I do use are either...
2013-07-25
947 reads
Most of you probably get that there will always be a bottleneck in a system. You implement a fix in...
2013-07-24
583 reads
I learned something from you – that was something someone said to me at the end of a recent consulting engagement....
2013-07-23
757 reads
I don’t bowl often, maybe once a year at best. It’s a fun way to spend a couple hours – I...
2013-07-22
711 reads
Yesterday I mentioned using the Google Webmaster Tools to identify some bad URL’s here on the blog. I decided to...
2013-07-19
639 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