Azure Backup Storage Options
As a database administrator, I am very conscious of how data is being backed up. Up until SQL Server 2012,...
2018-12-14
657 reads
As a database administrator, I am very conscious of how data is being backed up. Up until SQL Server 2012,...
2018-12-14
657 reads
With the hurricane bearing down on the east coast of the United States last week, making sure you have a...
2018-10-01 (first published: 2018-09-21)
1,315 reads
Unless you are living under a rock, you have most likely heard of the hurricane that is bearing down on...
2018-09-26 (first published: 2018-09-14)
2,586 reads
As data professionals, we should always strive to keep our systems updated and patched to ensure proper security of our...
2018-08-31
967 reads
The Cloud is a fun and exciting place to be. Exciting as it may be, even in the cloud, protection...
2018-08-10
297 reads
If you are like me, you use the SSMS GUI for various things. Though, I tend to use scripts for...
2018-06-27 (first published: 2018-06-15)
1,184 reads
Since joining Denny Cherry & Associates Consulting, I tend to travel about once a month. This isn’t a huge amount and...
2018-06-08
459 reads
Cloning things is all the rage these days…..even Storm Troopers.
Anyway, by now, you probably have seen documentation on Query Store...
2018-06-04 (first published: 2018-05-25)
1,776 reads
Microsoft Azure offers up a lot of technologies that you can play around with. One thing that you might not...
2018-06-01
275 reads
After being immersed into the consulting world again for 6 months now, I’ve gotten to work with clients in several...
2018-04-27
471 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