SQLRally 2012-Friday
Started the day early, heading to the Convention Center to be at Starbucks at 6:45 for the networking event I...
2012-05-12
959 reads
Started the day early, heading to the Convention Center to be at Starbucks at 6:45 for the networking event I...
2012-05-12
959 reads
Arrived at the convention center about 7:30, managed to arrive at the right end of the convention center and walked...
2012-05-11
715 reads
Ran across this recently, YourLogicalFallacyIs.com is a site that lists all the ways you can apply logic badly, and they’ve...
2012-05-10
872 reads
Had a nice lunch at On The Border at Orlando International before my flight, used that time to finish some...
2012-05-10
631 reads
It’s been just over two months since I started my small home garden. The initial work to clear the area...
2012-05-08
664 reads
It’s been not quite two years since I moved from a Blackberry to a Droid X. The X turned out...
2012-05-07
546 reads
The first conference I went to back in 1999 I attended every session, the bonus sessions, the breakfasts, everything. It...
2012-05-07
948 reads
I blogged a while back about not having the ability to easily disable purchasing on the Kindle. Until recently we...
2012-05-05
495 reads
We’re about to start our second experiment over at The Mentoring Experiment and we need mentors. Last time we picked...
2012-05-04 (first published: 2012-04-24)
1,853 reads
Craig Purnell and I are hosting an informal networking event at SQLRally this year on Friday May 11th from 7-8:30...
2012-05-04 (first published: 2012-04-12)
1,738 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