Better Presentations–Zoom
This is part of a series of tips for speakers on how to make your presentations better.
I’ve given around 30...
2014-09-16
699 reads
This is part of a series of tips for speakers on how to make your presentations better.
I’ve given around 30...
2014-09-16
699 reads
DateEventOctober 4 SQLSaturday #335 – Athens 2014October 4 SQLSaturday #336 – Holland 2014October 4 SQLSaturday #344 – Tirana 2014October 4 SQLSaturday #315 – Pittsburgh...
2014-09-15
593 reads
Hello Dear Reader! In June this year I was recognized by PASS as with an Outstanding Volunteer Award. In an...
2014-09-15
668 reads
We’ve just wrapped up the interviews and I wanted to jot down a few thoughts on what I’ve seen from...
2014-09-15
518 reads
Some days back, I received one query on my facebook page that user want to create Database Snapshot frequently & want to delete the oldest with same frequency. Quite...
2014-09-15
21 reads
I’ve been attempting to expand my reach to get back to my roots in development. I’m doing this because I...
2014-09-15
696 reads
Sorry for the click bait but I just couldn’t resist, and to be fair I was pretty impressed with this...
2014-09-15
1,192 reads
Sometimes after installing pretty useful addins when starting SSMS you can see error message like "Exception has been thrown by...
2014-09-15
855 reads
Some days back, I received one query on my facebook page that user want to create Database Snapshot frequently & want...
2014-09-15
503 reads
Awesome crowd this morning for my SQL Admin Best Practices with DMV's presentation at Houston TechFest 2014, thanks very much...
2014-09-13
572 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