Trying the Nest Thermostat
I’ve had the Nest Thermostat on my wish list for a while. It has looked like an interesting bit of...
2013-01-06
1,013 reads
I’ve had the Nest Thermostat on my wish list for a while. It has looked like an interesting bit of...
2013-01-06
1,013 reads
I bet if you think about it there are lots of times when people ask what you think about a...
2013-01-05
861 reads
Last year I purchased two Kindle Fires for the family to use. The UI could be just a little bit/slow...
2012-12-31
1,541 reads
Looking back at 2012 I feel like I’ve written less than I planned to, and in some ways done less...
2012-12-31
1,469 reads
One of the simpler pleasures in life is having an idea and putting it up for discussion. Not all ideas...
2012-12-23
909 reads
I wanted to save this link to the Microsoft Support Lifecycle page and thought I’d share as well. It’s a...
2012-12-22
1,179 reads
Steve Jones sent me a link to this post about Intelligence vs Effort months ago, since then I’ve looked at...
2012-12-22
793 reads
Back in April Steve Jones wrote up a disaster at work. Andy had one this week and wrote up the story too. Copy cat! Pretty soon everyone will be having a disaster and writing a story about it! Give these guys credit for letting you see what happens when it ALL goes bad. Disaster recovery is hard to sell and hard to do, reading the article might give you an idea that will save you some time and/or data one day.
2012-12-14 (first published: 2002-07-31)
10,724 reads
Last weekend I was in Tampa for SQLSaturday #168 and made sure to make some time for family. The most...
2012-11-26
912 reads
I made a quick trip to Tampa for #168 this past weekend. It was a “BI Edition” and it felt...
2012-11-21
948 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