Mile High Tech Con
There’s a brand new business intelligence conference launching next month in Denver, Colorado. The Mile High Tech Con is a...
2014-06-27
1,244 reads
There’s a brand new business intelligence conference launching next month in Denver, Colorado. The Mile High Tech Con is a...
2014-06-27
1,244 reads
On Facebook last night, I posted the following:
An operational DBA isn’t just a manager of a traditional RDBMS, transactional system....
2014-06-27
5,289 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-06-27
888 reads
TweetG’Day,
Saturday June 14th 2014 seen the Christchurch, New Zealand SQL SERVER user group host its second SQL Saturday (#316).
We learnt...
2014-06-27
1,411 reads
Hello Dear Reader! Just a quick post to say Thank You to the Arizona SQL Server User Group and to...
2014-06-27
696 reads
This is one of those posts which is pending for a very long time. I was pretty excited when Azure...
2014-06-26
971 reads
This is a reprint with some revisions of a series I originally published on LessThanDot. You can find the links...
2014-06-26
1,258 reads
I remember the day pretty vividly, it was in the summer months and I was as green as green can...
2014-06-26
439 reads
Yet another issue I had never seen before - thankfully this time I was able to find a relatively quick answer.
On...
2014-06-26
733 reads
This is a reprint with some revisions of a series I originally published on LessThanDot. You can find the links...
2014-06-26
2,743 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