Picking back up on blogging
It has been a trying month to month and a half with the implementation of Microsoft's CRM 3.0 product. By...
2006-10-30
1,393 reads
It has been a trying month to month and a half with the implementation of Microsoft's CRM 3.0 product. By...
2006-10-30
1,393 reads
My daughter-in-law just reminded me on Sunday that her birthday was in 21 days. Yikes! That's the day I fly...
2006-10-26
1,338 reads
I've been busy working on the magazine among other things and am struggling a bit. I had quite a few...
2006-10-18
1,539 reads
For your listening enjoyment, I have compiled a list off essential audio for .NET developers and SQL DBAs. This list...
2006-10-06
1,415 reads
For some reason, today I came across at least a half-dozen blog posts and articles about how to avoid SQL...
2006-10-03
1,441 reads
I've been rather quiet for a while and there's a reason. I've been
helping some friends get a general gaming site...
2006-09-22
1,520 reads
If you are new to SQL Server, you might be interested in viewing a video that covers the terms you use...
2006-09-11
1,594 reads
I ordered some new drives for our Dell server from "This Old Store" recently and they came on Tuesday of...
2006-09-08
1,727 reads
I've not been posting over the last week because I'm in the midst of a
two week vacation, the first I've...
2006-09-01
1,463 reads
Generally I don't look forward to giving up an entire Saturday at work. However, today's Dallas Code Camp was an...
2006-08-29
1,597 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