Some Thoughts on Community, Leadership, and Continuous Improvement
The SQL Server community is just awesome. I can’t say that enough. I may sound like a broken record when...
2017-12-17
384 reads
The SQL Server community is just awesome. I can’t say that enough. I may sound like a broken record when...
2017-12-17
384 reads
Shawn Melton MVP and dbatools contributor last week had an issue running SQL Server on Linux inside of Windows Subsystem for Linux.
Error trying to configure #sqlLinux on the openSUSE...
2017-12-16
17 reads
Shawn Melton MVP and dbatools contributor last week had an issue running SQL Server on Linux inside of Windows Subsystem...
2017-12-16
1,014 reads
Decades ago when I was working as a retail clerk, I had a boss named Billy. Billy was a pragmatic...
2017-12-16
419 reads
This blog post is about Team Foundation Server (TFS) and is about the situation where you need remember to update...
2017-12-16
532 reads
I have had a problem with DSC in Azure Automation for a few months now, there was a change made...
2017-12-15
354 reads
I have had a problem with DSC in Azure Automation for a few months now, there was a change made to the xSqlServer DSC resource which meant that the...
2017-12-15
18 reads
I have had a problem with DSC in Azure Automation for a few months now, there was a change made...
2017-12-15
60 reads
I have had a problem with DSC in Azure Automation for a few months now, there was a change made...
2017-12-15
99 reads
Back before I started doing technical presentations or writing blog posts, I frequently found myself in awe at those who...
2017-12-15
606 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 Risk Vs Reward, The never...
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...
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