A Not Quite Average Sunday
Ever had a day when a bunch of small things run together to create a day you wish you had...
2009-10-12
334 reads
Ever had a day when a bunch of small things run together to create a day you wish you had...
2009-10-12
334 reads
See his quiet post about it here. This comes right after finishing up his first book titled Protecting SQL Server...
2009-10-12
288 reads
We just had our October board meeting, this one ran the full hour and was a good discussion, catching up...
2009-10-12
236 reads
I try to be balanced on new technology and ideas, trying to find the middle ground between hype and usefulness,...
2009-10-11
393 reads
Yesterday was a typical Florida afternoon, sudden down pour of rain, but not a storm. Just slow solid rain for...
2009-10-08
335 reads
If you’re attending the PASS Summit this year I hope you’ve decided to attend the two hour Networking to Build...
2009-10-08
577 reads
Not very often I run across something with zero matches in a search engine, but had it happen recently. I...
2009-10-07
361 reads
I’ve been working on an idea for a while with Brent Ozar and Jeremiah Peschka for a contest that recognize...
2009-10-06
1,598 reads
No, I didn’t attend this one!
My friend Jonas Stawski is the organizer and we’ve been pleased to be a...
2009-10-06
381 reads
I currently write the editorial for the PASS Connector which is published every two weeks as part of my role...
2009-10-06
343 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