SQL Saturday 46 (#sqlsat46) Recap
I was privileged to be able to attend and present at SQL Saturday 46 in Raleigh, NC, this last weekend....
2010-09-20
835 reads
I was privileged to be able to attend and present at SQL Saturday 46 in Raleigh, NC, this last weekend....
2010-09-20
835 reads
Normally, I try to stick to posting technical info or community stuff on the blog, but there were a couple...
2010-09-07
574 reads
I am not a Reporting Services guru and nor do I play one on TV. I am however forced to...
2010-09-03
2,660 reads
Blogging has been a bit quiet of late. That’s because I’ve been spending a lot my spare time getting ready...
2010-08-30
768 reads
There are a lot of things I’d like to say about the PASS elections. I was on vacation last week...
2010-08-23
690 reads
Registration is open for the second 24 Hours of PASS this year. This one is going to be a preview...
2010-08-11
566 reads
I won’t be going to Las Vegas, but I will be presenting to the Las Vegas SQL Server Users Group,...
2010-08-11
632 reads
I just passed 100,000 views on the blog. That’s from 400 posts over a period of time starting in March...
2010-08-01
662 reads
One of the best things to come out with Powershell V2 is remoting and asynchronous calls. Between the two of...
2010-07-27
1,582 reads
Nice to see most of you have managed to fight your way through the shoggoths outside to attend another lecture...
2010-07-23
883 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