Upgrading to Windows 7
I’ve been using Win 7 on my dev machine for a few months now, and finally decided over the Thanksgiving...
2009-12-01
508 reads
I’ve been using Win 7 on my dev machine for a few months now, and finally decided over the Thanksgiving...
2009-12-01
508 reads
On the Friday at the end of the Summit we had a 4 hour Board meeting, welcoming new board members...
2009-11-30
1,759 reads
I met Rob via email early this year as a volunteer helping with content for PASS, and I’ve been following...
2009-11-29
1,427 reads
Brian Moran (incoming Board member) did a nice interview with Kevin, worth reading, and some good stuff about areas where...
2009-11-29
1,398 reads
Ran across this list a while back, Jurgen posted his Top 200 Developer Blogs list and an OPML file of...
2009-11-29
1,409 reads
I’m fond of browsing the discount shelf at the bookstore, it’s another way to see books that I might otherwise...
2009-11-26
581 reads
I know Thanksgiving has some deeper meanings, but at one level it’s all about the food. Food is a good...
2009-11-25
614 reads
Earlier this week I posted Part 1 and Part 2, today I want to wrap up by thinking about how...
2009-11-24
571 reads
As a speaker, blogger, even a DBA at work it’s hard to know when you’re having a positive impact on...
2009-11-23
725 reads
Yesterday in Part 1 I wrote about opening doors – the art of showing others what is possible within the context...
2009-11-23
540 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