Building Something Fun
A little further off topic than usual today, something not about technology and work for a change. Woodworking is one...
2009-04-23
1,412 reads
A little further off topic than usual today, something not about technology and work for a change. Woodworking is one...
2009-04-23
1,412 reads
This SQL School video looks at how you add a publication to a replication scenario.
2009-04-23
3,604 reads
I've had a few requests for these, so I'll take orders through May 8, 2009. The polo is a very...
2009-04-23
834 reads
My friend Will Strohl is managing the Day of DNN on June 13, 2009 at the Microsoft office in Tampa....
2009-04-22
713 reads
We'll all heard about or lived with outsourcing, and hopefully we know it's good and bad. Outsourcing the janitorial services...
2009-04-22
984 reads
I currently write the editorial for the PASS Connector which is published every two weeks as part of my role...
2009-04-22
572 reads
I was reading a book recently and it equated brand with reputation. My first thought was "aha", that brand is...
2009-04-21
1,031 reads
SQL School expands its replication series with a look at how you can set up a subscriber with MVP Andy Warren.
2009-04-21
2,626 reads
Karla just emailed that the schedule is set, details at http://www.sqlsaturday.com/schedule.aspx, but to save you time here are the speakers...
2009-04-21
628 reads
Tom has been doing a series of interviews on his blog lately and I ended up on the list. Interviewing...
2009-04-20
526 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