Working with Query Files (Day 5)
So you’re working with a query that you have loaded from a saved file. And now you want to open...
2018-01-05
383 reads
So you’re working with a query that you have loaded from a saved file. And now you want to open...
2018-01-05
383 reads
A bug was recently discovered on almost every processor made on the last 10 years, and it seems that almost...
2018-01-05
67 reads
As I mentioned in my recent blog Use cases of various products for a big data cloud solution, with so many...
2018-01-05
98 reads
As I mentioned in my recent blog Use cases of various products for a big data cloud solution, with so many...
2018-01-05
714 reads
Last month in December, I posted an article about working from home. In it I mentioned a couple of tools...
2018-01-05
583 reads
Last month in December, I posted an article about working from home. In it I mentioned a couple of tools...
2018-01-05
425 reads
In this article I will explore altering the default logs directory location. Some may say this is no big deal and you can just use the default location used...
2018-01-05
49 reads
Every now and then I find a topic that seems to fit perfectly into the mold of the theme of...
2018-01-17 (first published: 2018-01-05)
1,508 reads
I’m very thrilled to announce that I will be participating as speaker in this year’s SQL Saturday event in Guatemala city!
Here...
2018-01-04
118 reads
Have you ever been working in SSMS where you need to frequently access one particular script, but you are spending...
2018-01-04
426 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