SQL Server 2016–Live Query Statistics
WOW!!! The next great update to Execution Plans is a way to watch the processing of rows through iterators while...
2016-11-15 (first published: 2016-11-10)
2,067 reads
WOW!!! The next great update to Execution Plans is a way to watch the processing of rows through iterators while...
2016-11-15 (first published: 2016-11-10)
2,067 reads
There have been different announcements for new and upcoming features in the Microsoft Data Technology ecosystem. The one today I...
2016-11-03 (first published: 2016-10-28)
1,512 reads
The second half of the day was spent talking with various speakers and attendees. I got into a great conversation...
2016-10-28
811 reads
Today’s keynote was by David Dewitt. He did an excellent job explaining the architecture behind various Cloud Data Warehouse offerings....
2016-10-27
406 reads
As all Summits, the first Regular Session day in Seattle started with the Keynote. Well, really it starts with a...
2016-10-27
494 reads
For the first day at the Summit this year, I spent half my time in a Pre-Conference session with Idera...
2016-10-25
477 reads
It is voting season again, and there is a great group of individuals running for the Board of Directors of...
2016-10-06
367 reads
If you are looking for a great conference to attend, please look at Live! 360. This event combines 6 different...
2016-09-10
611 reads
There are many suggestions for loading a data warehouse using SQL Server integration Services (SSIS). Once you get started, you...
2016-07-26 (first published: 2016-07-21)
5,341 reads
Please join me and about 4000+ other technology professionals for the annual PASS Summit in Seattle, WA October 24th – 28th....
2016-06-24
546 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