HA and DR Precon in Baton Rouge
I’ll be doing a precon for SQLSaturday #324 in Baton Rouge Louisiana on August 1st, 2014 titled “A Day of...
2014-06-30
995 reads
I’ll be doing a precon for SQLSaturday #324 in Baton Rouge Louisiana on August 1st, 2014 titled “A Day of...
2014-06-30
995 reads
I am excited and humbled to be speaking at the PASS Summit for my second year in a row! There...
2014-06-27
1,165 reads
The Kerberos Configuration Manager is a really handy tool that can make configuring Kerberos a much easier task, but it’s...
2014-06-17
3,109 reads
I’m officially on the slate and running for the PASS 2014 Nomination Committee!
Why should you vote for Ryan?
I love the PASS...
2014-06-02
622 reads
I ran into an interesting issue while installing SQL 2012 SP1 in a failover cluster configuration and utilizing the local...
2014-05-08
856 reads
This post has been sitting in the draft folder for way too long, March of last year to be precise....
2014-03-11
1,774 reads
I’ve had several instances over the last few months where I had to reinstall the SQL Server Performance Counters. It...
2014-03-04 (first published: 2014-02-25)
4,610 reads
I ran across an issue that I haven’t seen since SQL 2000 and had almost forgotten about. Let’s do a...
2014-03-03
1,275 reads
A fellow community member sent me an email saying he was having trouble authenticating with Kerberos. Here is the error...
2014-02-26 (first published: 2014-02-18)
4,156 reads
At a conference recently I had someone ask how they would configure Kerberos for accounts that look like “NT Service\MSSQLServer”...
2014-02-18 (first published: 2014-02-10)
6,019 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