PASS Summit Report #2
Weather a bit cloudy today, a little rain and a little cool – not Seattle, but not Orlando either! Breakfast at...
2013-10-15
458 reads
Weather a bit cloudy today, a little rain and a little cool – not Seattle, but not Orlando either! Breakfast at...
2013-10-15
458 reads
Started today with breakfast with the family after packing up all their clothes and stuffed animals for the trip home....
2013-10-15
428 reads
One of the items that came up for discussion at the Chapter meeting today was the privacy policy for SQLSaturday....
2013-10-15
308 reads
Tonight for the fourth year Steve Jones and I are hosting an informal networking dinner. We’ll be at Buffalo Wild...
2013-10-14
383 reads
Yesterday we drove up from Charleston where I had attended SQLSaturday #227. It’s not a bad drive, about three hours....
2013-10-14
317 reads
Protecting our physical systems usually involves some type of security at the office. For many of this, we have some type of key card system. Andy Warren asks today how you handle things and does it work well.
2013-10-14
160 reads
My first time in Charleston! Quick notes:
Made the drive with the family in 7 hours, not bad, and easily the...
2013-10-13
566 reads
Last Tuesday I received the email confirming that I will be an MVP for another year. Nice news to get....
2013-10-07
354 reads
Today I’ll continue with my notes and thoughts on the 2013 election process and a good place to start is...
2013-10-06
722 reads
I watched the election this year with interest and the advantage of having seen PASS elections from a number of different...
2013-10-05
683 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