Business Cards – Again
I posted some thoughts on business cards awhile back, had used up the ones I had and was time to...
2009-10-25
684 reads
I posted some thoughts on business cards awhile back, had used up the ones I had and was time to...
2009-10-25
684 reads
I presented Social and Not So Social Networking for the DBA. Of the attendees, 16 submitted an eval. Here are...
2009-10-25
561 reads
I ordered the ' target=_blank>The Board Book from Amazon ($18) to try to get some ideas for how to do a...
2009-10-22
589 reads
I thought I’d finish up the notes by listing things that went well and not so well:
Jack Corbett really helped...
2009-10-22
541 reads
I’ve been wanting to write this for a while, but have been waiting for the board elections to close. Lots...
2009-10-22
851 reads
Eric Wisdahl posted some questions on my last update, and I thought I’d reply here to make my answers more...
2009-10-22
803 reads
Just released on the PASS site is that news that Tom Larock, Jeremiah Peschka, and Brian Moran are the new...
2009-10-21
627 reads
Picking up from yesterday, once we got through the confusion of the room changes everything settled down. I checked the...
2009-10-21
618 reads
I currently write the editorial for the PASS Connector which is published every two weeks as part of my role...
2009-10-20
543 reads
It’s easy to think of the Summit as just work, but I can tell you that you’ll have more fun...
2009-10-20
677 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