My Schedule for the PASS 2010 Summit
I’m doing the final and somewhat hectic work of preparing for the trip to Seattle for the PASS Summit. It’ll...
2010-11-05
691 reads
I’m doing the final and somewhat hectic work of preparing for the trip to Seattle for the PASS Summit. It’ll...
2010-11-05
691 reads
Earlier this week I posted the announcement about an informal get together on Sunday night November 7th for those arriving...
2010-11-05
1,098 reads
If you’re attending the 2010 Summit and are interested in helping improve SQLSaturday, I hope you’ll register and attend our...
2010-11-03
344 reads
I’ve been wanting to write this for a while, and I haven’t because I felt that I just didn’t quite...
2010-11-03
411 reads
I’m a little later than I had hoped getting this announced, but hopefully not too late! For the past couple...
2010-11-02
430 reads
I’ve used a Blackberry for the better part of 10 years, loyalty built because as a phone and an emailing...
2010-11-01
392 reads
Today we have a guest editorial from Andy Warren asking what you might have done if you lived in the past.
2010-10-29
253 reads
Before I get into my thoughts, go vote! Here are the options this year for the SQLRally pre-cons:
BI Sessions: http://www.sqlpass.org/sqlrally/2011/PreConsforVotingBI.aspxDBA...
2010-10-29
1,462 reads
I saw this at the college where we held SQLSaturday #49 on the restroom door. I’m not sure what to...
2010-10-29
1,527 reads
Earlier this week I posted Bloggers, Quit Worrying About Spam, discussing what I felt was an over-focus on preventing spam...
2010-10-27
685 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