Blogtrottr – RSS to Email
Anyone who is a fan of RSS Feeds will likely know that the discontinuing of service by Google Reader caused...
2014-01-24
988 reads
Anyone who is a fan of RSS Feeds will likely know that the discontinuing of service by Google Reader caused...
2014-01-24
988 reads
Photo credit – Mike Lynch
A good cure to a creepy doll is a good old post that is still useful. In...
2014-01-24
740 reads
Over the past week there has been information finally coming out about how the Target breach occurred. This write up...
2014-01-24
951 reads
It’s Friday, time to look back at the most popular RealSQLGuy posts of the week. Because it’s Friday and you’re...
2014-01-24
527 reads
The book’s link is here, SQL Server 2012 Reporting Services Blueprints.
This book is a step-by-step, task-driven tutorial that goes straight...
2014-01-24
1,161 reads
Today when I clicked Properties of tempdb in SSMS, I got the error message below:
At first I thought the database...
2014-01-23
6,517 reads
Earlier today, I presented a session for Pragmatic WorksTraining on the T’s titled The Flavors of Non-Clustered Indexes. In the session,...
2014-01-23
775 reads
I finished my first book of this year and here’s the review! After I finished the newest edition of Ralph...
2014-01-23
1,186 reads
Last week I posted about reviewing passwords and mentioned using a password manager as part of that effort. DaniSQL noted...
2014-01-23
798 reads
In advance of the yearly licensing reconciliation with Microsoft at work, I have led the charge to ensure all of...
2014-01-23
629 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