Worth Moving to Enterprise?
I'm starting to see results from other people testing compression and it seems that the data compression can really provide...
2008-03-13
647 reads
I'm starting to see results from other people testing compression and it seems that the data compression can really provide...
2008-03-13
647 reads
I've been swarmed under at work and with migraines. That should change over the weekend (the swarmed under... migraines come...
2008-03-13
617 reads
Yesterday I posted Building YOUR Brand that described a formula for becoming rich and famous. Well, perhaps richer than you are...
2008-03-12
566 reads
There has been a great deal of wailing and gnashing of teeth regarding the scuttlebutt that SP2 will be the...
2008-03-12
714 reads
Between teaching classes, attending community events, and participating in the local user group I get to have a lot of...
2008-03-11
684 reads
Just spoke with Brian this morning to get an event update for SQLSaturday #3:
122 attendees registered so far (event is...
2008-03-11
485 reads
Friday I gave another iteration of our free Sucessful Technical Speaking class, upgraded some since the last version, and this was...
2008-03-10
555 reads
I'll be teaching a one day performance tuning seminar that targets beginning DBA's and developers that do data access, hoping to...
2008-03-09
778 reads
Oneof my tasks for our mini-Summit for Red Gate was to show the crew how I do the podcasts. There...
2008-03-08
967 reads
I was mildly amused by my friend Steve Jones blog post Finding a Direction about not really wanting to spend...
2008-03-06
548 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