T-SQLTuesday #42! The Long and Winding Road
The Long and Winding Road
It is time for another installment in the monthly blog party for SQL Server professionals known...
2013-05-14
693 reads
The Long and Winding Road
It is time for another installment in the monthly blog party for SQL Server professionals known...
2013-05-14
693 reads
“The Long and Winding Road” is one of my favorite Beatles songs, it reminds me of my dad, he was...
2013-05-14
579 reads
Spring is in the air, I think. With that scent in the air, we have a nice juicy topic coming up this month for any and all that are...
2013-05-14
9 reads
Spring is in the air, I think.
With that scent in the air, we have a nice juicy topic coming up...
2013-05-14
799 reads
Thursday May 16th at noon central, we are going to be educated by MCM and past SQL Server MVP Robert...
2013-05-14
499 reads
As of today (5/14/2013) this MSDN article says “SQL Server Agent service startup account must be a member of the SQL Server...
2013-05-14
804 reads
To expand on what I talked about in Should a placement firm tell you what they are billing the client?:...
2013-05-14
991 reads
It’s T-SQL Tuesday time, this month hosted by Wendy Pastrick who asks you to talk about the Long and Winding...
2013-05-14
896 reads
Have you ever wanted to browse your SharePoint 2010 site in Windows Explorer? If you are in SharePoint 2007 please...
2013-05-14
893 reads
I blogged DBCC WritePage a year ago here http://www.sqlnotes.info/2011/11/23/dbcc-writepage/. It’s an extremely dangerous command especially with the last parameter “directORbufferpool” of this command turned on. I also showed you...
2013-05-14
9 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