2012-01-27
710 reads
2012-01-27
710 reads
Today we have a guest editorial from Andy Warren. Today Andy suggests you try some new tools and see if you can increase your productivity.
2012-01-27
291 reads
I saw this write up about the built in ability to both restore to factory settings as well as just...
2012-01-25
664 reads
I’ve managed to get by for more than 3 years with the original 64G SSD in my laptop, but lately...
2012-01-24
1,235 reads
It’s been quite a while – where did the time go? – since I had done a presentation for oPASS, so when...
2012-01-23
557 reads
Today we have a guest editorial from Andy Warren. Are you in a survival job? Read Andy's thoughts and let us know.
2012-01-20
194 reads
Yesterday Bill Graziano announced the appointment of two Directors (Kendal Van Dyke and James Rowland-Jones) to fill vacancies on the...
2012-01-14
950 reads
I’m stepping out of blogging-break mode for a few minutes to share that I’ll be presenting Building Your Professional Development...
2012-01-04
707 reads
The 2011 Election results were just posted, congratulations to Adam Jorgensen, Denise McInerney, and Rob Farley for taking the top...
2011-12-28
693 reads
I’m writing this on December 17th, thinking back on 2011, and it has been a good year. Not always simple...
2011-12-28
648 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