Working From Home
It’s now been one month since I’ve started to work for Denny Cherry & Associates Consulting. Working for DCAC now enables...
2017-12-01
184 reads
It’s now been one month since I’ve started to work for Denny Cherry & Associates Consulting. Working for DCAC now enables...
2017-12-01
184 reads
If you’ve never seen the movie “A Knights Tale” I recommend that you do. In the movie, the character William...
2017-11-01
148 reads
If you’ve never seen the movie “A Knights Tale” I recommend that you do. In the movie, the character William...
2017-11-01
367 reads
If you work in the Microsoft technology space you are probably aware of the mass of people who refresh their...
2017-10-16
345 reads
If you work in the Microsoft technology space you are probably aware of the mass of people who refresh their...
2017-10-16
152 reads
After reviewing some recent audit results for a couple of our SQL Servers, I noted the audit checked for start up...
2017-08-21 (first published: 2017-07-31)
1,870 reads
I always have a special place in my heart for the SQL Server user groups of the mid-west. I ran...
2017-08-09
328 reads
I always have a special place in my heart for the SQL Server user groups of the mid-west. I ran...
2017-08-09
143 reads
After reviewing some recent audit results for a couple of our SQL Servers, I noted the audit checked for start up...
2017-07-31
388 reads
I’ll admit it, every time I think of Ohio I have flashbacks to the Drew Carey show. The show was...
2017-07-17
163 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