CDC Interoperability with Mirroring and Recovery
CDC Interoperability with Mirroring and Recovery
The following email came in to a discussion group last week asking several questions about...
2010-11-29
2,363 reads
CDC Interoperability with Mirroring and Recovery
The following email came in to a discussion group last week asking several questions about...
2010-11-29
2,363 reads
SQL Server 2008 SP1 To Old for Replication?
We are in the middle of a platform upgrade project at work, and...
2010-08-13
1,812 reads
Transferring Logins to a Database Mirror
I recently discovered that my book (Pro SQL Server 2008 Mirroring) has an older version...
2010-08-13
3,840 reads
T-SQL Tuesday #009: Beach Time: My Work Away From Work
This blog entry is participating in T-SQL Tuesday #009, hosted...
2010-08-10
683 reads
Moving to a New Blog Platform
First, I want to say that having my blog on SQL Server Central has been...
2010-08-01
1,027 reads
Making a Career Change of My Own
I commented about a month ago on the high profile career changes that seemed...
2010-07-30
2,495 reads
Presenting to the West Michigan SQL Server User Group / SQL PASS Chapter (Rescheduled)
My presentation scheduled for earlier this week to...
2010-07-30
1,653 reads
Presenting to the West Michigan SQL Server User Group / SQL PASS Chapter
I will be presentitng to the West Michigan SQL...
2010-07-26
845 reads
T-SQL Tuesday #008: Gettin' Schooled
Welcome to another exciting episode of T-SQL Tuesday. I’m Robert L Davis (blog|@SQLSoldier), and I’m...
2010-07-18
2,460 reads
Advanced Troubleshooting Week at SQL University, Lesson 3
Welcome back to Advanced Troubleshooting Week at SQL University. I’m your guest professor...
2010-07-16
1,876 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