Penance
Buck Woody wrote a fantastic post this morning for speakers to think about. All too often I have seen some...
2011-10-20
1,849 reads
Buck Woody wrote a fantastic post this morning for speakers to think about. All too often I have seen some...
2011-10-20
1,849 reads
Carl Rabeler, SharePoint and SQL BI Expert Formerly With Microsoft SQLCAT, Rejoins SolidQ as Director of the Business Intelligence Center...
2011-10-20
911 reads
The Denver SQL Server User’s Group will be having their monthly meeting tonight at the Microsoft office in the Denver...
2011-10-20
734 reads
Be Part Of The Solution, Not The Problem
<disclaimer >
Now that BoD season is in full swing and I’m not running for...
2011-10-20
1,459 reads
We’ve had some BIG fun this week, relatively speaking, with #SQLSue and #SQLIdiot and just general #SQLcraziness. We’ve had several...
2011-10-20
603 reads
G’day,
I was checking out some of our configuration options today using sys.configurations and I started to wonder how many people...
2011-10-20
6,784 reads
I’m a fan of virtual teams, times when you pull together people from across many teams to form a team...
2011-10-20
553 reads
I have to admit that the 2011 PASS Summit was such an amazing experience and there was so much to...
2011-10-20
696 reads
Subject: Row Versioned Data WarehousesLevel: 200-300 (Intermediate)
Start Time: Thursday, December 15th, 2011 8:00 PM US Central Time
Presenter: Jeremy Huppatz...
2011-10-20
515 reads
There was a recent uproar about a session delivered recently. A company thinks that the session infringed on their intellectual...
2011-10-19
1,573 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