My Azure ARM template development workflow
Writing infrastructure as code is pretty nice and I enjoy the declarative approach of defining what you want and letting...
2017-12-13
40 reads
Writing infrastructure as code is pretty nice and I enjoy the declarative approach of defining what you want and letting...
2017-12-13
40 reads
Writing infrastructure as code is pretty nice and I enjoy the declarative approach of defining what you want and letting...
2017-12-13
47 reads
The configuration of any system plays a vital role in its working efficiently. However, configuring a system needs not necessarily...
2017-12-13
796 reads
In this post we will pick up where we left off in Part 1, if you haven’t read that please...
2017-12-29 (first published: 2017-12-13)
1,746 reads
2017-12-13
326 reads
The obesity epidemic is much in the news these days. The list of health issues related to being overweight is...
2017-12-27 (first published: 2017-12-13)
1,778 reads
Yesterday I wrote about best practices, illustrating that what may be an assumed technical design standard doesn’t fit every scenario....
2017-12-13
405 reads
I’ve been taking a bit of a deep dive into understanding Transparent Data Encryption (TDE). As part of that I’ve...
2017-12-28 (first published: 2017-12-12)
3,257 reads
In this module you will learn how to use the Social Network Graph Custom Visual. The Social Network Graph allows...
2018-01-02 (first published: 2017-12-12)
1,961 reads
With 2018 coming, I’ve thought about the question, “What do I want to be when I grow up?” I ask...
2018-01-01 (first published: 2017-12-12)
1,430 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