SQL CAT is on the Move
Not a big deal really, but they’re consolidating from the SQLCAT.COM to put everything on MSDN.
Read all about it here.
I...
2013-08-23
742 reads
Not a big deal really, but they’re consolidating from the SQLCAT.COM to put everything on MSDN.
Read all about it here.
I...
2013-08-23
742 reads
I’ve been at home through the whole month of August, restingworking hard, but it’s time to get on the road...
2013-08-21
865 reads
My laptop is out for repair. I’m working currently on a Surface Pro instead. It’s spurred me to do something...
2013-08-19
808 reads
I’ve heard over and over again that the reason people don’t want to learn Azure, to explore it, to understand...
2013-08-15
755 reads
If you missed the 24 Hours of PASS Summit 2013 Preview, you missed some excellent sessions. I watched a few,...
2013-08-13 (first published: 2013-08-07)
1,243 reads
If you asked me, prior to today, if I would type or say those words, I would have laughed right...
2013-08-12
745 reads
I recently posted some comments about some guidance offered by Microsoft when talking about the CXPACKET wait type. Nothing I...
2013-08-07
680 reads
Guidance is hard.
Seriously, you’d think it would be easy. You’d think you say things like, don’t shrink your database, most...
2013-08-05
2,338 reads
I’m trying out a new blog post series, mostly for myself as an exercise. I’m going to pick one speaker...
2013-08-02
635 reads
Psssttt!
Developers. Man, have I got something good for you.
Are your DBAs slowing down your development processes? Are they keeping you...
2013-07-29
1,747 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