Speaking at SQLSaturday #710 in Edmonton on May 5th, 2018
I will be presenting twice at SQLSaturday #710 in Edmonton, on 5 May 2018. You can join me for two...
2018-04-04
290 reads
I will be presenting twice at SQLSaturday #710 in Edmonton, on 5 May 2018. You can join me for two...
2018-04-04
290 reads
On our managed servers we run a job each day to check that either a FULL or DIFF has run...
2018-04-04
686 reads
There are already a number of articles and blog posts that reveal the benefits of the SQL Operations Studio tool. The...
2018-04-16 (first published: 2018-04-04)
2,062 reads
I am excited to announce that I have been selected to speak at Music City Tech held at Vanderbilt University...
2018-04-04
285 reads
This blog post is about how to diagnose what your Azure VM is doing while it is booting.
I have a...
2018-04-06 (first published: 2018-04-04)
1,655 reads
Welcome to a new series that Manuel Quintana [Blog | Twitter] and I are starting where we will cover some of...
2018-04-04
443 reads
There has been talk of a dark theme for SSMS for years. Does it exist, will it exist? Well, the...
2018-04-04
473 reads
SQL Server Database is an advance relational database management system, which is widely used by business professionals. But one of the serious issue one faces is SQL Server Database...
2018-04-04
27 reads
SQL Server Database is an advance relational database management system, which is widely used by business professionals. But one of...
2018-04-04
698 reads
I got asked this question last week and it’s a very good one. After all, running Sql Server in Azure...
2018-04-05 (first published: 2018-04-04)
1,759 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