Who said that breaking up is hard to do?
Some of you younger DBA’s out there may not know who Neil Sedaka is or remember his poignant words "Breaking...
2007-07-03
630 reads
Some of you younger DBA’s out there may not know who Neil Sedaka is or remember his poignant words "Breaking...
2007-07-03
630 reads
Most people I know tend to work in one of two places consistently: work or home. So they've built a...
2007-07-03
575 reads
Breaking Up is Easy to DoHardIt's nice to be able to package a process into a single, tidy, elegant query,...
2007-07-03
640 reads
This is pretty cool, a, earthquake test for Project Black Box from Sun. They take one of their systems to...
2007-07-01
640 reads
No, I'm not going to keep making corny references to war and being a soldier. But in many ways, we...
2007-06-29
1,355 reads
The active SQL Server error log is one of the first places people look when there is a problem. For...
2007-06-29
1,609 reads
I have the best job here at SQLServerCentral.com. I work from home, I get to be creative, writing about what...
2007-06-28
1,382 reads
My friend and former co-worker Chris Rock just posted at article over at SQLTeam.com that has a pretty good walk...
2007-06-27
1,383 reads
I wanted to get working on Katmai a little, but not being brave and seeing the release notes that it...
2007-06-20
1,364 reads
My job here at SQLServerCentral.com is mainly as editor. This means that for the most part I edit articles, schedule...
2007-06-20
1,433 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