Notes from the MagicPASS Holiday Party
I haven’t been to a MagicPASS meeting in a while, so it was nice to reconnect with the group at...
2011-12-14
740 reads
I haven’t been to a MagicPASS meeting in a while, so it was nice to reconnect with the group at...
2011-12-14
740 reads
A couple months back the laptop my wife uses was fading away, the internal power connector was broken/barely working and...
2011-12-14
644 reads
The Shredder Challenge was a contest sponsored by DARPA to find ways of putting shredded documents back together. Take a...
2011-12-13
852 reads
Ran across this during my daily reading, a post by Jeff Stibel on Why I Hire People That Fail. The...
2011-12-12
787 reads
My first outing of the new year will be at the IT Pro Camp here in Orlando, working on some...
2011-12-12
650 reads
One of our small holiday traditions is that we bake at least one home made dessert. Hard to beat the...
2011-12-09
661 reads
Sixkill is the 39th Spencer novel, and the last that was written by Robert Parker before his death. The plot...
2011-12-08
650 reads
My perception of the tablet market has been that the iPad is king, but at a kingly price. If I...
2011-12-07
804 reads
For me the Wednesday before Thanksgiving was a quiet day at work. It was one of those ‘everyone is leaving...
2011-12-06
621 reads
On my list of things to get done this week is register for SQLRally 2012 in Dallas. It’s a quick...
2011-12-05
502 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