My new event series across Europe: SQL Server 2012 Deep Dive Days
I'm very proud to announce today that I'm running next year
a new event series across Europe: the SQL Server 2012...
2011-11-17
841 reads
I'm very proud to announce today that I'm running next year
a new event series across Europe: the SQL Server 2012...
2011-11-17
841 reads
A while back I posted about Culture Posters, a technique for trying to build your culture by writing down the...
2011-11-17
822 reads
When I’m managing I tend to absorb the stress that my teams feel. It’s my job to help them be...
2011-11-17
639 reads
This is a continuation of my DBA in Space journal.
In this next series of blog posts, I am going to...
2011-11-17
686 reads
Since I am in the Collation Sensitive mood, I am finally getting around to updating this script. This is the Table Space script that I have had out there...
2011-11-17
14 reads
Since I am in the Collation Sensitive mood, I am finally getting around to updating this script. This is the...
2011-11-17
1,025 reads
November 17, 2011 - Redmond, WA - Well, we knew it was coming, but the timing was a bit of a surprise for...
2011-11-17
2,590 reads
Wow! Just Wow! That’s all I can say to describe how great SQL Saturday 86 was on November 5th in Tampa,...
2011-11-16
1,292 reads
Degenerate dimensions, also called fact dimensions, are standard dimensions that are constructed from attribute columns in fact tables instead of...
2011-11-16
5,004 reads
I put out the call to stop SOPA, and one Twitter friend wrote back:
Good luck! We have it in Denmark....
2011-11-16
553 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