An Update on My Dell E6500
I bought my E6500 almost three years ago, giving away what was a perfectly good Latitude to trade up to...
2011-06-17
572 reads
I bought my E6500 almost three years ago, giving away what was a perfectly good Latitude to trade up to...
2011-06-17
572 reads
Today we have a guest editorial from Andy Warren. Are there particular phrases that you use in technology that resonate with you and have particular meanings? Andy shares a few of his favorites.
2011-06-16
161 reads
I took a vacation recently (well, a really long weekend) and as I like to do, visited a few book...
2011-06-16
680 reads
From time to time I get asked about how PASS Board members are compensated, so I thought it would make...
2011-06-15
699 reads
I haven’t tried this, but run across a reference to hashtagart that looks pretty interesting as a way to use...
2011-06-14
637 reads
Note: This is a good, bad, and ugly post. We took some chances, got some things right, got more than...
2011-06-13
996 reads
I finished reading Make the Impossible Possible: One Man”s Crusade to Inspire Others to Dream Bigger and Achieve the Extraordinary...
2011-06-10
800 reads
The school my daughter attends gives each student a workbook type thing at the beginning of each year, and it...
2011-06-09
606 reads
I spend a lot of time just looking at events, watching for new ideas. At our recent SQLRally we had...
2011-06-07
645 reads
Here’s another photo from my phone, this one from SQLSaturday Tampa in the cafeteria area. An easy typo to make,...
2011-06-02
609 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