How many Backups is Too Many?
Does this title seem strange? Of course we know this is the true answer:
https://cdn.meme.am/cache/instances/folder633/58097633.jpg
But here is a story of a...
2017-03-02 (first published: 2017-02-24)
2,686 reads
Does this title seem strange? Of course we know this is the true answer:
https://cdn.meme.am/cache/instances/folder633/58097633.jpg
But here is a story of a...
2017-03-02 (first published: 2017-02-24)
2,686 reads
When ‘Enforce Password Policy’ for SQL Server logins is turned off, you can make your password anything you want! Hooray!...
2017-03-02
486 reads
Another post for me that is simple and hopefully serves as an example for people trying to get blogging as...
2017-03-02
758 reads
In my introduction to the topic of using SSIS in the cloud, I noted that SSIS is not currently available...
2017-03-02
430 reads
During the month of April, I will be delivering three full-day Power BI hands-On workshops. Each of these events will...
2017-03-02
368 reads
OK, for no particular reason at all or maybe because I had too much food at lunch or just because...
2017-03-02
399 reads
If you have ever tried to debug a program that used the TSql Script Dom to parse some T-SQL you will know that the process is extremely slow and...
2017-03-02
21 reads
If you have ever tried to debug a program that used the TSql Script Dom to parse some T-SQL you...
2017-03-02
751 reads
If you have ever tried to debug a program that used the TSql Script Dom to parse some T-SQL you...
2017-03-02
39 reads
If you have ever tried to debug a program that used the TSql Script Dom to parse some T-SQL you...
2017-03-02
49 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