Mentor blog
I have been following a few blogs for a number of years now, and one of the most enjoying blog...
2015-02-02
296 reads
I have been following a few blogs for a number of years now, and one of the most enjoying blog...
2015-02-02
296 reads
Azure File Storage enables you to present an Azure Storage Account to your IaaS VMs as a share using SMB....
2015-02-09 (first published: 2015-02-01)
7,680 reads
For any programming language, just writing the code is not well enough. It should be written using the best practices. This article will try to explain the disadvantages of...
2015-02-01
17 reads
For any programming language, just writing the code is not well enough. It should be written using the best practices....
2015-02-01
4,160 reads
By Steve Bolton
…………In the last three installments of this amateur series of mistutorials on finding outliers using SQL Server, we...
2015-01-30
2,553 reads
Reading Time: 3 minutesBeing on the edge of a cliff is a common feeling when running a small business
Stepping Back
I...
2015-01-30
1,255 reads
Let’s just start with the last three years have been fantastic! This blog post is a slight deviation from the technical content on my blog. We’re going to focus...
2015-01-30
15 reads
Let’s just start withthe last three years have been fantastic! This blog post is a slight deviation from the technical...
2015-01-30
747 reads
Steve:
James recently published part 3 of his PowerShell and Windows Forms series for creating your own SQL Tools. In this...
2015-02-09 (first published: 2015-01-30)
8,498 reads
I am pleased to announce that I have an upcoming preconference training session on Friday, February 27th, the Friday before...
2015-01-30
1,163 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