PASS Summit 2011: Wrap-Up
Another Summit done gone by and I’m exhausted. You know you did the Summit correctly if you’re crawling onto the...
2011-10-17
1,446 reads
Another Summit done gone by and I’m exhausted. You know you did the Summit correctly if you’re crawling onto the...
2011-10-17
1,446 reads
And we’re off. We opened with a video of people saying “Connect, Share, Learn” and “This, is Community”
Rob Farley & Buck...
2011-10-14
1,343 reads
Bill Graziano has come out on stage, looking marvelous, in a traditional kilt and stockings. Thanks Bill.
For those who don’t...
2011-10-13
1,099 reads
This is Day 2 of the Summit proper. But for me, this is the fifth day of the Summit and...
2011-10-13
1,018 reads
Hello again. The PASS Organization has once more allowed me to sit at the bloggers table for the key note....
2011-10-12
992 reads
I’m working on updating my book, Query Performance Tuning Distilled, so that it reflects the new things available in SQL...
2011-10-05
1,823 reads
No, I’m not talking about hubs and switches. I’m talking about people. Networking is a major component of an event...
2011-10-03
1,154 reads
Just a reminder that there are a few seats left for SQL In The City: LA on the 29th of...
2011-09-30
1,523 reads
In my continuing quest to not get personal visits from Buck Woody (blog|twitter) I’m making sure that I make good...
2011-09-26
1,486 reads
I writequitefrequently about SQL ServerExecution Plans. I started in that area just because that’s how you figure out what a...
2011-09-22
834 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