Book Review: Fault Line
I finished reading Fault Line by Barry Eisler ($16.50 @ Amazon) a few weeks ago. I’ve been a fan for a...
2009-07-17
603 reads
I finished reading Fault Line by Barry Eisler ($16.50 @ Amazon) a few weeks ago. I’ve been a fan for a...
2009-07-17
603 reads
This edition of SQL School brings us a look at how to set single user mode for your SQL Server instance.
2009-07-16
4,223 reads
I currently write the editorial for the PASS Connector which is published every two weeks as part of my role...
2009-07-15
427 reads
Saw an announcement in Eweek about this, so went looking and found this review of the Imation SSD Upgrade Kit....
2009-07-15
569 reads
Database Mail is an essential part of administering SQL Server for most people. MVP Andy Warren brings us part 2 of how to set up this subsystem.
2009-07-14
6,370 reads
I ran across this post about time to move beyond 960 where it talks about most websites today are designed...
2009-07-14
376 reads
Chad Miller will be doing a presentation on Powershell and we’ll have our usually round table discussion afterward – often the...
2009-07-14
472 reads
Cross posted from the SQLSaturday blog
Though few see it, we also maintain a full set of admin tools for the...
2009-07-14
541 reads
I’ll be attending SQLSaturday #16 in South Florida on August 8th and doing two presentations, one on statistics and one...
2009-07-13
333 reads
I finished up reading Traffic: Why We Drive the Way We Do by Tom Vanderbilt last week and enjoyed it....
2009-07-10
380 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