Relocating oPASS
I mentioned last week about closing down sqlgroups.com and trying to decide on a new home for oPASS.org. We did...
2009-08-04
362 reads
I mentioned last week about closing down sqlgroups.com and trying to decide on a new home for oPASS.org. We did...
2009-08-04
362 reads
John Dunagan is the “Chief Organizer” of this event on October 3rd in Estero, FL, just south of Ft Myers....
2009-08-04
329 reads
Did you know that SQL Server maintains a great set of text logs about events on the server? MVP Andy Warren shows you how to get information out of the error logs in this SQL School video.
2009-08-04
10,005 reads
John finally got things caught up and had time to finish the evals, here’s how I did on my presentation...
2009-08-03
336 reads
We launched this last week, a dedicated sub group for sql bloggers. To be eligible to join you have to...
2009-08-03
254 reads
I was doing some maintenance on the SQLSaturday web site recently and one request kinda low on the list was...
2009-08-03
3,085 reads
One of the interesting features of LinkedIn is the ability to post a reference about a connection. If you think...
2009-08-02
883 reads
I read The Connect Effect: Building Strong Personal, Professional, and Virtual Networks by Michael Dulworth ($16 @ Amazon) months ago, forgot...
2009-07-30
1,921 reads
SQL School covers a basic topic this week. MVP Andy Warren shows the various ways to stop and start your services.
2009-07-30
5,220 reads
I was doing some maintenance on the SQLSaturday web site recently and one request kinda low on the list was...
2009-07-29
3,615 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