Writing a course
Over the last three years, since that first article I submitted to SQLServerCentral, I find myself getting involved in more...
2008-03-21
1,309 reads
Over the last three years, since that first article I submitted to SQLServerCentral, I find myself getting involved in more...
2008-03-21
1,309 reads
Reminder that if you're registered the Orlando Code Camp is tomorrow. If you're registered and plans have changed, please cancel...
2008-03-21
1,605 reads
I went down to the Denver stop on the Heros Happen Here launch events and as you can tell by...
2008-03-20
1,742 reads
If you've ever taken a look at the auto generated statistics that SQL builds (typically on non indexed columns when...
2008-03-19
1,350 reads
Had lunch with a friend in the business yesterday that is involved with vulnerability scans for a large company and...
2008-03-18
1,593 reads
Tjay Belt forwarded me the information about the Utah Code Camp this year. Still early in the process, no schedule...
2008-03-18
1,531 reads
Just a reminder that the event is this Saturday. The tentative schedule has been posted and it looks like I'll...
2008-03-17
1,492 reads
In my last post, I talked about what prompted me to give a deep thought to documentation work. Documentation, to me,...
2008-03-17
1,027 reads
I've been emailing back and forth with IndyTechfest organizer John Magnabosco over the past year as we've traded notes about...
2008-03-16
711 reads
Saw a mention of this in the latest MSDN Magazine, you can download Reflector.SQL2005Browser and install it as an add-in for...
2008-03-13
812 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