Writing in my sleep
When I first got into IT full time 10 years ago, I noticed that my mind was constantly solving programming...
2007-09-25
1,290 reads
When I first got into IT full time 10 years ago, I noticed that my mind was constantly solving programming...
2007-09-25
1,290 reads
I've had a couple people ask me about ideas for growing (as opposed to starting) a SQL user group. While...
2007-09-24
1,352 reads
I'm rarely a "needy" guy, but I have to admit that I'm feeling a little left out. Due to project...
2007-09-23
1,457 reads
I try not to just post links to other content, but the guys at Edgewood did a pretty good job...
2007-09-23
1,331 reads
Congratulations to Wayne on becoming President! I've known him for years and you couldn't ask for a guy with more...
2007-09-23
1,429 reads
I see they finally rolled out the new site. Lots of annoying quirks so far, the biggest for me is...
2007-09-23
1,359 reads
This was my 5th year at PASS and every year I enjoy catching up with old friends and meeting many...
2007-09-23
1,375 reads
Somehow between the sessions, networking and socializing I never found time to post anything last week. So, I'm going to...
2007-09-23
1,345 reads
It's done, it's out, and check it out!!!
I guess if you got here, you've probably noticed 🙂
This was a fairly...
2007-09-22
1,409 reads
I haven't seen a lot of sessions at the 2007 Summit, but I did go through 4 or 5 across...
2007-09-21
1,407 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