2011-11-30
1,482 reads
2011-11-30
1,482 reads
SQL Server Magazine Reveals New Name for the Brand
Did you hear the news? SQL Server Magazine has a new...
2011-11-30
7,500 reads
Since Microsoft is moving to core-based licensing for SQL Server 2012 Enterprise Edition, with a minimum of four physical core...
2011-11-30
957 reads
As we have done for the last several years, SQLServerCentral.com will be offering its own track at SQL Server Connections...
2011-11-29
748 reads
It's amazing to me how the herd mentality works in Technology (and many other things) sometimes. I get the idea...
2011-11-29
1,184 reads
Microsoft SQL Server 2012 Release Candidate 0 (RC 0) has a confirmed issue with Master Data Services configuration. The following error...
2011-11-29
1,755 reads
SQL Server 2012 is coming to 12 cities next year. Is your city on the list? It can be – or...
2011-11-29
865 reads
Welcome to the first of a few sponsor interview posts from SQL Saturday 99. After reading Arnie Rowland’s (Blog | @ArnieRowland)...
2011-11-29
517 reads
This is a continuation of my DBA in Space journal.
Episode seven is filmed at the “Animals in Space” exhibit at...
2011-11-29
576 reads
I was astounded to see this blog at #4 on the list from the recent SQL Server Magazine Community Choice...
2011-11-29
714 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