My Experiences Tech Editing Pro SQL Server on Linux
The Opportunity
Earlier this year I received an email from Jonathan Gennick, an editor at Apress books. The subject of the...
2018-09-26
286 reads
The Opportunity
Earlier this year I received an email from Jonathan Gennick, an editor at Apress books. The subject of the...
2018-09-26
286 reads
Just for fun here is a word search with all of the data types available in SQL Server. Well, two...
2018-10-05 (first published: 2018-09-26)
1,837 reads
I saw this again recently and see it too often in environments so wanted to take a second to remind...
2018-10-04 (first published: 2018-09-26)
2,722 reads
It's that time of year when SQLSaturdays start to slow down (in the U.S. anyway) as we march towards Summit...
2018-09-26
337 reads
This blog post is based on conversations I witnessed between MVPs around commissioning and more importantly de-commissioning virtual machines (VMs)...
2018-09-26
766 reads
In this post we’ll look at how quick and easy it is to use the XEvent Profiler to create an...
2018-10-08 (first published: 2018-09-25)
6,131 reads
This week’s Azure Every Day posts are focused on the different APIs available within Azure Cognitive Services. Today I’ll focus...
2018-09-25
190 reads
Today I hosted a webinar with Gene Kim (@RealGeneKim) and we had a fantastic discussion. I was slightly star struck...
2018-09-25
252 reads
If you’ve been anywhere near social media this week you may have seen that Microsoft has announced SQL Server 2019.
I...
2018-10-04 (first published: 2018-09-25)
4,435 reads
It has been almost impossible to avoid reading about the numerous large-scale data breaches reported on a seemingly daily basis....
2018-10-02 (first published: 2018-09-25)
1,958 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