May 2013 Las Vegas UG
Spring is in the air, I think.
With that scent in the air, we have a nice juicy topic coming up...
2013-05-14
798 reads
Spring is in the air, I think.
With that scent in the air, we have a nice juicy topic coming up...
2013-05-14
798 reads
Spring is in the air, I think. With that scent in the air, we have a nice juicy topic coming up this month for any and all that are...
2013-05-14
8 reads
The Long and Winding Road
It is time for another installment in the monthly blog party for SQL Server professionals known...
2013-05-14
692 reads
The Long and Winding Road It is time for another installment in the monthly blog party for SQL Server professionals known as TSQL Tuesday. This month...
2013-05-14
11 reads
You have changed your database to single_user mode to do a task. As you go about your business, you lose...
2013-05-06
795 reads
You have changed your database to single_user mode to do a task. As you go about your business, you lose track of which connection was the single_user connection. You...
2013-05-06
20 reads
I began this post back in October of 2012 after learning that I had passed the SQL Server 2008 MCM...
2013-04-16
964 reads
I began this post back in October of 2012 after learning that I had passed the SQL Server 2008 MCM Knowledge exam. I had set it aside in hopes...
2013-04-16
16 reads
AlwaysOn – Finally, A usable ‘mirror’!
In the past, High Availability and Disaster Recovery (HADR) had many limitations. Clustering and Mirroring are...
2013-04-10
865 reads
AlwaysOn – Finally, A usable ‘mirror’! In the past, High Availability and Disaster Recovery (HADR) had many limitations. Clustering and Mirroring are great, but the mirror/secondary database is not...
2013-04-10
7 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