Chalkboard at the Office
This is something I saw recently, a large chalkboard – like the kind they used to have in schools – on a...
2011-09-29
710 reads
This is something I saw recently, a large chalkboard – like the kind they used to have in schools – on a...
2011-09-29
710 reads
Today we have a guest editorial from Andy Warren. Andy talks today about he various items that collect around your work space. Are they useful? should you be cleaning things up? What does this say about you?
2011-09-29
128 reads
I’m writing this on Sunday afternoon after the event, thinking about the event and what I want to share with...
2011-09-26
635 reads
It’s 7am on Friday and I can’t wait for the day to end, head home to change and then go...
2011-09-23
609 reads
Ran across this in my reading about the Ten Thousand Year Clock, a project funded by Jeff Bezos. Awesome dream....
2011-09-21
714 reads
I have a tendency to carry more than I need, the equivalent of the Batman Utility Belt. I just went...
2011-09-21
856 reads
Last year it was the Tina Turner impersonator. Was it last year or the year before where the servers spun...
2011-09-21
654 reads
I wanted to start with a follow up to my last post about the officer elections and the concerns about...
2011-09-20
712 reads
Someone I worked with recently on the server side of the business had that to say about SQL Server compared...
2011-09-19
615 reads
More than once I’ve run into situations where I’m working with two people/groups that don’t get along. Especially as a...
2011-09-16
625 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