Saxophone Fire and Bad Words
There is nothing like having two children to remind you how strange, funny, and complicated language can be. Try answering...
2011-11-30
1,602 reads
There is nothing like having two children to remind you how strange, funny, and complicated language can be. Try answering...
2011-11-30
1,602 reads
The Professional Association for SQL Server and the North Texas SQL Server User Group have been working hard behind the...
2011-11-30
1,493 reads
Just saw the official announcement MS TechEd will be in Orlando June 11-14, 2012, at the Orange County Convention Center....
2011-11-30
1,561 reads
I read a post about documenting your day by Steve Jones, here is where culture insists i write a few words about...
2011-11-30
1,538 reads
As I did for powershell a day Series Blog April 2011, consolidated the all months blog into one pdf file here....
2011-11-30
1,437 reads
Day 30 More Fatal Errors and BUGs
For sql server 2000 and earlier you may get 5242 and 5243 corruption in...
2011-11-30
2,147 reads
Want 2 days of Microsoft SQL Server training where you can hand-pick what you're learning about for the low price...
2011-11-30
2,041 reads
I have lost an hour today trying to find a bug in my SSIS package, and it was so small...
2011-11-30
6,840 reads
We are evaluating a WAN optimization vendor and have so far installed the appliance at the primary site and end-user’s...
2011-11-30
1,912 reads
With the announcement of the official slate for the BoD election for this year, the job of the NomCom is...
2011-11-30
2,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