TSQL Tuesday #100: A Look To The Future
So for this month’s TSQL Tuesday, Adam Mechanic has asked us to take a look into the future and think...
2018-03-13
457 reads
So for this month’s TSQL Tuesday, Adam Mechanic has asked us to take a look into the future and think...
2018-03-13
457 reads
2018-03-13
263 reads
[read this post on Mr. Fox SQL blog] I had a recent requirement to integrate multi-language support into a SQL DW via a SQL SSIS ETL solution. Specifically the SQL DW...
2018-03-12
68 reads
[read this post on Mr. Fox SQL blog]
I had a recent requirement to integrate multi-language support into a SQL DW via...
2018-03-12
1,190 reads
What? Execution plans and the GDPR? Is this it? Have I completely lost it? Well, no, not on this topic,...
2018-03-12
847 reads
I’ve got a whole slew of free webcasts and events coming this spring. I’m excited about each and every one of them! My next event is a free session...
2018-03-12
14 reads
I recently migrated an SSRS 2017 instance to a Power BI Report Server environment, as you can read in the...
2018-03-12
536 reads
Problem
I’ve noticed on demo machines that sometimes Telegraf doesn’t start on the first try, and this seems to not happen...
2018-03-12
1,052 reads
As someone who just crossed three decades of working in technology – I have a sudden renewed interest in understanding how...
2018-03-22 (first published: 2018-03-12)
2,742 reads
The other day I got thinking about what would happen if all databases on a single instance grew out, every...
2018-03-12
269 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