An Unclassy Error
I saw this on a TV while walking through a store. More than a but amusing, but not too helpful...
2012-02-08
653 reads
I saw this on a TV while walking through a store. More than a but amusing, but not too helpful...
2012-02-08
653 reads
Nice to have the option, you can opt-out (default is in) of having personalized ads. I turned it off, the...
2012-02-07
827 reads
We’ve had two of them since right after the launch and overall I’m pleased. They get used quite a bit...
2012-02-06
581 reads
In December I went through my current magazine list and made some changes, mostly based on what I had been...
2012-02-03
644 reads
Here’s a niche idea that someone might have some fun with, build a site where someone can request some or...
2012-02-02
1,161 reads
I’ll be visiting the Space Coast group (http://spacecoast.sqlpass.org/) on Feb 9th to do a presentation on Professional Development Plans. I’m...
2012-02-01
735 reads
I’ve had making home made ice cream on my list of things to try for a while, since watching an...
2012-01-31
1,670 reads
The call for applications is open today, a chance for six lucky people to do more in the SQL community...
2012-01-30
707 reads
The Idera ACE program is something I’ve been involved with for over a year now. I’ll share a bit of...
2012-01-30
1,673 reads
I tried this out – Change.org that is – recently as part of a post about PASS and wanted to post a...
2012-01-28
796 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