Four Things PASS gets Right
PASS has taken a lot of heat recently. A few folks have pointed out that you only seem to hear...
2014-09-29 (first published: 2014-09-24)
6,782 reads
PASS has taken a lot of heat recently. A few folks have pointed out that you only seem to hear...
2014-09-29 (first published: 2014-09-24)
6,782 reads
Having very recently gone through the nomination process for the PASS Board, I thought I would share a few things...
2014-09-24
504 reads
Registration count after some cancellations now at 577, way above my goal of 500. We’ve decided not to spend on...
2014-09-24
521 reads
For a SQL Server guy it sometimes amazes me how often I’m in and out of batch files and how...
2014-09-24
629 reads
We had a disaster at SQLServerCentral this past weekend. It wasn’t a big disaster, but it was an event that...
2014-09-23
727 reads
Just a brief note to say that I will be voting for Grant Fritchey for the PASS Board and I...
2014-09-23
1,136 reads
Last week before our monthly MagicPASS meeting I went through my usual routine of grabbing the PASS chapter deck and...
2014-09-23
536 reads
First, a reminder/disclaimer that I am serving on the PASS NomCom this year. The four candidates in the election are...
2014-09-26 (first published: 2014-09-23)
6,528 reads
Lately I have been using more and more the awesomeness of the Alt-button in SQL Server Management Studio (SSMS). What...
2014-09-23
852 reads
The latest update to my book, SQL Server Query Performance Tuning was released last week. This is the fourth edition...
2014-09-23
787 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