Android Adventures–Part 2
I’ve been living with my Droid X phone for a couple weeks now. It’s definitely a big change from my...
2010-11-29
1,490 reads
I’ve been living with my Droid X phone for a couple weeks now. It’s definitely a big change from my...
2010-11-29
1,490 reads
It’s the end of November and this will probably be my last update on PASS for the year as things...
2010-11-29
1,567 reads
Today we have a guest editorial from Andy Warren. Are you ready for an inspection at work? Are you really running your environment in a way that would make you proud? Andy has some thoughts about sticking to your policies and procedures.
2010-11-29
116 reads
TechEd will be in Atlanta next year, May 16-19, 2011 at the Georgia World Conference Center. I went this year...
2010-11-29
1,537 reads
Today we have a guest editorial from Andy Warren. Andy discusses the need to consider personnel when you are planning for things to go wrong.
2010-11-23
179 reads
I ran across this article in Visual Studio Magazine that tracks the source of a missing object to an embedded...
2010-11-19
564 reads
Somewhat of a strange title, but it’s been an interesting journey to understand that I do take risks and to...
2010-11-18
567 reads
My friend Mala is heading up the 2nd annual SQLSaturday in Louisville, KY, being held next year on January 22,...
2010-11-17
486 reads
One of the ideas I mentioned in my presentation on Comprehensive Professional Development was to set up some type of...
2010-11-17
1,815 reads
As always, this represents my own views, I’m speaking only for me and not the entire PASS Board.
Early last week...
2010-11-16
681 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