Backup and Restore Options for Azure SQL DB
I have decided to do a summary blog post on backup and recovery options for Azure SQL Database. If you...
2018-03-26
587 reads
I have decided to do a summary blog post on backup and recovery options for Azure SQL Database. If you...
2018-03-26
587 reads
Introducing the Blame Game! Someone has messed up the new anatomy application’s (Mr. Body) performance and no one is willing...
2018-03-26
293 reads
Quick notes:
Same location as previous years, good!Parking was same place, but it was confused by a pay-to-park event on the...
2018-03-26
293 reads
2018-03-25
31 reads
In this module you will learn how to use the VitaraCharts – MicroChart. The VitaraCharts – MicroChart provides a intuitive way to...
2018-03-23
1,046 reads
I really like the dbatools project. This is a series of PowerShell cmdlets that are built by the community and...
2018-03-23
1,625 reads
In just a few short weeks, SQLSaturday Madison will happen in Madison, WI, and I’m happy to say that I’m...
2018-03-23
237 reads
Community.
In the SQL Server community, we are basically one big #sqlfamily. This is a story of how the family helped...
2018-03-23
396 reads
This is probably a very delayed post, but I have been really busy lately.
As mentioned in my previous post, I...
2018-03-23
112 reads
Microsoft has expanded sharing by allowing users to share Power BI content via email. In a previous post, I discussed...
2018-04-02 (first published: 2018-03-22)
2,144 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