Growing It At Home: Building Your Own Tools
Short On Money? Sometimes that is the motivation. Maybe the tool you want doesn’t really exist yet? For me it was those things and the joy of building something...
2014-02-10
31 reads
Short On Money? Sometimes that is the motivation. Maybe the tool you want doesn’t really exist yet? For me it was those things and the joy of building something...
2014-02-10
31 reads
Short On Money?
Sometimes that is the motivation. Maybe the tool you want doesn’t really exist yet? For me it was...
2014-02-10
1,069 reads
On Thursday, February 13, 2014, I’ll be at Midlands PASS in Columbia, SC. We’ll be meeting from 5:30 PM to...
2014-02-10
357 reads
We have here an easy, handy-dandy way to find out how much CPU is in use on your server. Of...
2014-02-10
563 reads
See that guy there? He’s not winning. This picture was taken in July of 2013, and at that exact moment,...
2014-02-10
518 reads
A little while back I was doing some research into a failed job and ran into a slight problem. The...
2014-02-10
905 reads
If you are reporting from a Cube in SSRS and you want to drill through to another report you can...
2014-02-10
359 reads
If you are reporting from a Cube in SSRS and you want to drill through to another report you can...
2014-02-10
1,241 reads
I'm going down memory lane here and remembering one of the first things I did as a DBA. I was...
2014-02-10
616 reads
Analyst firm RedMonk periodically publishes rankings of the Top 20 programming languages, as measured by activity on StackOverflow and number...
2014-02-09
887 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