Celebrating Mistakes-Part 2
I’ve been thinking about this a lot. It’s easy to say we want to take risks, much harder to set...
2011-08-05
1,011 reads
I’ve been thinking about this a lot. It’s easy to say we want to take risks, much harder to set...
2011-08-05
1,011 reads
Most of us learn more from mistakes than successes. We talk about taking risks, but what is the average response...
2011-08-04
679 reads
I saw this write up about Cornell coming up with a way to detect fake online reviews with about 90%...
2011-08-03
866 reads
Today we have a guest editorial from Andy Warren that looks at the choice of eating with someone else, or alone and the benefits of each.
2011-08-03
214 reads
This editorial I wrote ran on SQLServerCentral a couple weeks back and generated a lot of comments, and more than...
2011-08-02
308 reads
I started by journey to Birmingham by leaving work at 1130 and getting to the airport in time to have...
2011-08-01
308 reads
What had me reflecting on numbers was an article in the Financial Times (Conduit of Contention if you can find...
2011-07-29
1,507 reads
Someone recently asked me if I would work for a company if I didn’t believe in their products or services...
2011-07-28
656 reads
Project plans should try to plan for some unknowns. For large projects they include known risks, vacation time, maybe even...
2011-07-26
677 reads
Just a few notes about things I’m doing over the next few months:
July 30 – Attending SQLSaturday Birmingham. I went to...
2011-07-25
581 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