A big thank you
Grant Fritchey shows his softer side, extending his appreciation to all DBAs who work tirelessly to keep our software running in the face of adversity.
2015-11-09
705 reads
Grant Fritchey shows his softer side, extending his appreciation to all DBAs who work tirelessly to keep our software running in the face of adversity.
2015-11-09
705 reads
A great benefit that I get with my job is that I get to travel all over the place to...
2015-11-05
473 reads
WHOOP!
Another PASS Summit is complete. This one was amazing. It’s my first time ever as a member of the Board...
2015-11-02
465 reads
It’s Kilt Day!
I want to give a quick assessment on how the Summit has been for me so far. Monday,...
2015-10-29
828 reads
If you’re going to PASS and you want to have a chat, I want to talk to you. If it’s...
2015-10-23
518 reads
Guilty.
I’m at least one of the people who yelled Zoomit during a keynote at PASS Summit.
I want to take a moment...
2015-10-22
566 reads
Next week at the PASS Summit I’ll be presenting a session called Statistics for the New Data Pro.
You can read...
2015-10-20
393 reads
I’ve put this off for too long. It’s time to get my feet wet with some new tech.
Step 1 is...
2015-10-14
564 reads
One of the ways that you take more direct control over your SQL Server instances is through the use of...
2015-10-13 (first published: 2015-10-05)
1,263 reads
This is the second year of Argenis Without Borders and the second year that I’m taking part. Last year we...
2015-10-12
525 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