A Bit of a SQL Saturday 99 Update…
I’ve been a bit busy while planning this year’s SQL Saturday in Minnesota. Unfortunately, that hasn’t led to a lot...
2011-10-26
757 reads
I’ve been a bit busy while planning this year’s SQL Saturday in Minnesota. Unfortunately, that hasn’t led to a lot...
2011-10-26
757 reads
The Analysis Services Deployment Wizard is an often under utilized but important tool when moving your OLAP database throughout your...
2011-10-26
7,409 reads
You may have missed the big announcement yesterday on SQLServerCentral.com, that thanks to one of our great event sponsors, Red Gate, we...
2011-10-26
957 reads
Actually, I only submitted the winning entry; Denali CTP3 SQL Server 2012 is the real winner. After having a blog...
2011-10-26
820 reads
Today I want to talk about a specified wait type that can be sometimes very hard to
troubleshoot: the THREADPOOL wait...
2011-10-25
12,628 reads
Let’s take a look at how to import the Microsoft Best Practice Policies into your Policy Based Management Server. You...
2011-10-25
1,029 reads
This series of blog posts are related to my presentation, The Top Ten Skills You Need, which is scheduled for...
2011-10-25
1,315 reads
As life skills go one of the hardest is to see yourself as others do – they apply all kinds of...
2011-10-25
869 reads
One of the greatest things about all the DMOs is how you can combine the information they present to you...
2011-10-25
2,048 reads
A while back i was creating a stored procedure to be used for pulling data from the SQL Server into...
2011-10-25
13,751 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