SQL Server Standard Update
We’ve received wonderful support from the community. Brad McGehee has a list with great people on it who have volunteered...
2009-08-29
1,671 reads
We’ve received wonderful support from the community. Brad McGehee has a list with great people on it who have volunteered...
2009-08-29
1,671 reads
I've been running the Windows 7 RC for a few months, and overall I like it. Many things work well,...
2009-08-28
977 reads
Hi,This script is very helpful, specially for sql server 2000. I made some changes into this.Thanx to T.Pullen for this...
2009-08-28
1,938 reads
Microsoft has recently unveiled their newly updated, public MVP website, that does a great job of explaining exactly what a...
2009-08-28
1,908 reads
I had a need to export permissions to be run against the database once an older version was restored (but which didn't...
2009-08-28
13,583 reads
I recently submitted an article to SQLServerCentral about my adventures in upgrading my existing SSRS 2005 instance to 2008. In...
2009-08-28
603 reads
As most of you know I am hosting a bi-weekly Live Meeting event called SQLLunch. I recently purchased www.sqllunch.com and...
2009-08-28
739 reads
Event Record
This is the third year that Orlando has hosted a SQLSaturday. In 2007, I was an attendee; 2008, I...
2009-08-28
346 reads
I attended a presentation recently from Steven Wright of SQL Sentry on Analysis Services (SSAS) memory management and it was...
2009-08-27
3,827 reads
Last Friday I discussed baking multiple batches of blueberry muffins so I thought I’d follow up with another baking post....
2009-08-27
597 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