SQLSaturday #49 in Orlando!
We just put the site up, starting a little earlier than last year, and over the course of this week...
2010-04-21
504 reads
We just put the site up, starting a little earlier than last year, and over the course of this week...
2010-04-21
504 reads
Found Ninite while browsing a list of efficiency tools on PCWorld.com. It’s a one stop super installer, you run through...
2010-04-20
633 reads
I’ve had this on my list to write about for a while, just didn’t have a great example until this...
2010-04-19
505 reads
I hear that registration is over 350 so far, with seats still available – but register soon! I’m driving up with...
2010-04-19
510 reads
First, some background. If you’ve been to the Summit you know that we have an opening night reception, lots of...
2010-04-16
1,125 reads
A few weeks back I was in Chicago for three days for work. I’ve been through the airport a couple...
2010-04-16
962 reads
I’ve been waiting on this for a while, and missed the announcement that it was available, happened to see that...
2010-04-15
552 reads
SQLSaturday #38 is coming up on May 8th, 2010, back at the same location as in previous years at the...
2010-04-15
495 reads
Decided to scrap the pizza this month after one too many late deliveries from Pizza Hut, went with sandwich platters...
2010-04-14
496 reads
SQLSaturday #46 will be held in Raleigh, NC on September 18, 2010, under the direction of Brett Tomson and team...
2010-04-13
491 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 Risk Vs Reward, The never...
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...
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