Physical Fitness
Real life events continue to interfere with my regular posting. However, I would rather deal with them and neglect posting...
2007-11-19
1,579 reads
Real life events continue to interfere with my regular posting. However, I would rather deal with them and neglect posting...
2007-11-19
1,579 reads
I've got a request in to PASS asking them to release 2 of the many sessions that were presented at...
2007-11-19
1,347 reads
Visit the blog of Joe Healy, my favorite MS Developer Evangelist to see some pics from SQLSaturday. Joe is amazingly...
2007-11-15
1,356 reads
You may not think of DDJ for database info and I'll admit that what they do cover is often a...
2007-11-15
1,435 reads
I was doing a research on SQL trace regarding RPC:Completed event. So I need to generate a RPC:Completed event first...
2007-11-14
1,755 reads
A short article but interesting I think, with some good comments already. I think in general triggers are under used,...
2007-11-13
588 reads
We were lucky enough to have Joe come to Orlando to speak at SQLSaturday and we also talked him into...
2007-11-12
818 reads
I'm just finishing up sending out thank you emails to the volunteers, speakers, and sponsors that helped make our first...
2007-11-12
618 reads
I'll post Part III of Becoming a DBA tomorrow (meaning there will be two posts). Veterans' Day is typically celebrated...
2007-11-12
625 reads
One of the things I discuss in my Successful Technical Speaking class (it's a
free class, usually once a quarter)...
2007-11-12
620 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