A traveling man
It’s been a long year for me. This year I’ve attended:
SQL Saturday #60 – Cleveland SQL Saturday #66 – Colorado Springs MVP...
2011-12-05
969 reads
It’s been a long year for me. This year I’ve attended:
SQL Saturday #60 – Cleveland SQL Saturday #66 – Colorado Springs MVP...
2011-12-05
969 reads
The SQL Server 2012 Developer Training Kit has been updated with a bunch of new content (download it here). This...
2011-12-05
1,133 reads
As I imagine that the majority of people who are reading this will have some level of SSIS knowledge, I’ll...
2011-12-05
1,227 reads
Earlier this year, I wrote a post about my upcoming plans for the year in response to a question asked...
2011-12-05
1,603 reads
It’s the first Monday of the December, and it’s time to do a monthly checkup. As previously mentioned, the premise...
2011-12-05
909 reads
We’re all busy people. We have jobs, families, and responsibilities out the wazoo. Little Timmy needs to be picked up...
2011-12-05
730 reads
Part 1 of Question 11—The Question.Part 2 of Question 11:The follow up to the question.This is a continuation of my...
2011-12-05
701 reads
On my list of things to get done this week is register for SQLRally 2012 in Dallas. It’s a quick...
2011-12-05
502 reads
Have you ever wanted or needed to get the data and log file size for all of the databases in your server? I have seen scripts that would get...
2011-12-05
28 reads
Have you ever wanted or needed to get the data and log file size for all of the databases in...
2011-12-05
2,424 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