Why Am I Here? You’re On Retainer
That’s just one of about a hundred great lines from episode 1 of Farmed and Dangerous. A company with the...
2014-03-19
611 reads
That’s just one of about a hundred great lines from episode 1 of Farmed and Dangerous. A company with the...
2014-03-19
611 reads
The problem with the PASS Summit session submissions process is that people don’t know why they’re rejected. So say we...
2014-03-26 (first published: 2014-03-19)
1,444 reads
It really is so much easier to just throw hardware at badly performing databases. Just buy a bigger, faster server...
2014-03-19
1,191 reads
This may not be the exact model, but I bought 2 First Alert detectors at Costco for $23. Not a...
2014-03-19
674 reads
I had a recent run in with collation problems and it got me started reading. As I read I started...
2014-03-19
2,265 reads
This post is part of the SQL Community Project #DBAJumpStart by John Sansom. As I mentioned yesterday, this post has...
2014-03-24 (first published: 2014-03-19)
1,469 reads
TweetG’day,
Are people familiar with the saying “If there’s an elphant in the room, introduce it“? – if not, then to sum...
2014-03-25 (first published: 2014-03-19)
5,447 reads
What would you do?
What would your reaction be if, one day, all that old data you’ve been holding onto for...
2014-03-24 (first published: 2014-03-18)
1,975 reads
I haven’t been to Wisconsin in a long time. Not since I was a little kid, going to visit family....
2014-03-18
820 reads
Today, MSDN and TechNet are reporting that SQL Server 2014 will be available on April 1, 2014. Thanks to @MariaZakourdaev, who posted...
2014-03-18
823 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