Community Speakers/Leaders - Where's the ROI?
I participated in a lunch meeting recently with a number of people from MS that work on their community efforts,...
2008-06-16
1,791 reads
I participated in a lunch meeting recently with a number of people from MS that work on their community efforts,...
2008-06-16
1,791 reads
One of the questions that came up during a panel discussion at SQLSaturday #4 was whether it was better to...
2008-06-15
1,485 reads
I gave a presentation Tuesday to my local SQL user group on 2008 T-SQL and data types. One of the items...
2008-06-13
775 reads
Randy Dyess of Solid Quality Mentors had a session and since I'd just gotten a copy of Grant Fritchey's book...
2008-06-13
865 reads
I visited the Space Coast group last night, hosted by Ken Tucker, and did about 90 minute of SQL Q&A...
2008-06-12
568 reads
Every so often I see a post in the forums where someone has stated they've used a Domain Admin level...
2008-06-12
12,938 reads
I left my laptop at the Red Gate booth, and then managed to wander up to a Data Compression talk...
2008-06-12
744 reads
Long time acquaintance Allen White is hosting SQLSaturday #6 in Cleveland on August 9th. Registration and call for speakers is...
2008-06-12
443 reads
A program manager asked the question at the start: Who's had a query performance issue where a query "went bad"...
2008-06-12
1,067 reads
At the recent SQLSaturday #4 we had a session end up finishing much earlier than expected, so we gave the...
2008-06-11
716 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 Risk Vs Reward, The never...
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...
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