SQLSaturday Tampa 2008 is This Weekend (Feb 16)
The Tampa crew of Wes Dumey and Pam Shaw and many volunteers have been working on this for the past...
2008-02-11
565 reads
The Tampa crew of Wes Dumey and Pam Shaw and many volunteers have been working on this for the past...
2008-02-11
565 reads
This article shows how to initialize a subscriber from a backup in SQL 2005. It's a niche technique, but it...
2008-02-11
349 reads
I was doing some development on my laptop tonight and I was getting fed up with the default font, Courier...
2008-02-09
3,657 reads
Actually more it's "our way" as mentioned in Andy's post, and less my way than by committee these days with...
2008-02-08
815 reads
Part of a conversation I had at the South Florida Code Camp was what I thought about various features that...
2008-02-07
457 reads
Had a friend forward this link to me about Chipotle and it's worth reading if you either A, like Chipotle/Mexican...
2008-02-06
441 reads
Windows 2008 RTM'd this week, which means that in a few weeks, at the February Launch event, there will be...
2008-02-06
782 reads
Introducing Linq is now available as a free download and along with chapters from Introducing ASP.Net Ajax and Introducing Silverlight....
2008-02-05
520 reads
The Midlands PASS Chapter is pleased to announce our own Paul Shearer and Bill Stevenson as our speakers for our...
2008-02-05
630 reads
I never did complete my MCDBA. As I was preparing to, I transitioned to my systems architect role, meaning I...
2008-02-05
3,230 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