We are Family
It has been a while since I last wrote something for a meme monday. This month is a perfect time...
2011-11-07
684 reads
It has been a while since I last wrote something for a meme monday. This month is a perfect time...
2011-11-07
684 reads
Recently I had the luxury of a long afternoon lunch at Chipotle on a Sunday afternoon, catching up on some...
2011-11-07
803 reads
So here it is then, my first ever Blog post!
I'm not cheating here as I am not officially starting to...
2011-11-07
583 reads
I've been pretty busy polishing up my SQLInspire NYC talk, when I realized that it's another edition of Meme Monday. The...
2011-11-07
1,706 reads
As part of my commitment to read and review 12 books in an effort to be active in my own...
2011-11-07
1,775 reads
Tom asks what #SQLFamily means to me. This is a hard one, not because of what #SQLFamily does for me,...
2011-11-07
1,733 reads
I was using various “quick find” SSMS add-ins which give you ability to get your tables, stored procedures, functions and...
2011-11-07
1,035 reads
AdvertisementsSQL server could not start cannot find object or property (0x80092004)
Recently I got a call from my team the users...
2011-11-07
8,366 reads
In recent past while working on an assignment I have encounter an error 701 There is insufficient system memory to run...
2011-11-07
1,945 reads
Providing delegated administration to groups that need to perform various security functions has always been a difficult task, but thanks...
2011-11-07
2,687 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