Day 10 of 31 Days of Disaster Recovery: Monitoring for Corruption Errors
31 Days of Disaster Recovery
It’s day 10 of my 31 Days of Disaster Recovery series, and I want to...
2013-01-11
1,354 reads
31 Days of Disaster Recovery
It’s day 10 of my 31 Days of Disaster Recovery series, and I want to...
2013-01-11
1,354 reads
31 Days of Disaster Recovery
Welcome to day 9 of my 31 Days of Disaster Recovery series. Today, I want...
2013-01-09
2,231 reads
T-SQL Tuesday #38
This post is not only day 7 of my 31 Days of Disaster Recovery series, it is...
2013-01-08
1,355 reads
Day 7 of 31 Days of Disaster Recovery: Writing SLAs for Disaster Recovery
31 Days of Disaster Recovery
Today is day...
2013-01-08
1,602 reads
Day 6 of 31 Days of Disaster Recovery: Dealing With Corruption in Allocation Pages
31 Days of Disaster Recovery
Yesterday, I...
2013-01-06
1,640 reads
31 Days of Disaster Recovery
Welcome to day 5 of my series on disaster recovery. I want to start digging...
2013-01-08 (first published: 2013-01-06)
3,175 reads
Day 4 of 31 Days of Disaster Recovery: Back That Thang Up
31 Days of Disaster Recovery
Here we are at day...
2013-01-04
1,048 reads
Day 3 of 31 Days of Disaster Recovery: Determining Files to Restore Database
31 Days of Disaster Recovery
Welcome back for day...
2013-01-04
2,310 reads
Day 2 of 31 Days of Disaster Recovery: Protection From Restoring a Backup of a Contained Database
31 Days of Disaster...
2013-01-02
1,777 reads
SQLBits XI: Need Your Vote
SQL Bits XI
SQLBits XI is in Nottingham, U.K., May 2 – 4, 2013, and I am attending....
2013-01-03 (first published: 2013-01-02)
1,042 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