Cumulative Update – 13 for SQL Server 2008 R2 Service Pack 2 Is Now Available !
The 13th cumulative update release for SQL Server 2008 R2 Service Pack 2 is now available for download at the...
2014-07-02
1,153 reads
The 13th cumulative update release for SQL Server 2008 R2 Service Pack 2 is now available for download at the...
2014-07-02
1,153 reads
While the World
Cup was still going on, and the folks in the USA had a real reason to root
for the...
2014-07-02
1,207 reads
Important disclaimer: I am closely associated with Tillmann Eitelberg & Oliver Engels since I am working with them at OH22.
I am...
2014-07-02
186 reads
Data Driven subscriptions in SQL Server Reporting Services (SSRS) is only available if you have the Enterprise or BI Editions...
2014-07-01
1,080 reads
Another trivia question today, this one about figuring out which of the options provided has a particular negative identity seed....
2014-07-01
304 reads
Today I received an email notifying me that I have been awarded the Microsoft “MVP” award. An excerpt from Microsoft’s...
2014-07-01
1,376 reads
On June 24th, Dell Software gave me the privilege of presenting Subqueries For Superheroes as part of their Experts Perspective...
2014-07-01
939 reads
Randomized color report? So help my CODE!
Writing a Reporting Services report can be challenging, making you use the most of...
2014-07-01
1,693 reads
by Steve Bolton
…………If all goes according to plan, my blog will return in a few weeks with two brand new...
2014-07-01
708 reads
From the very first SQLSaturday event that I have helped to create (SQLSaturday #78 Portugal), I have always desired to...
2014-06-30
522 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