Precon in Columbus OH
I’ll be doing a precon for SQLSaturday #421 in Columbus Ohio on July 10th, 2015 titled “Planning a High Availability and Disaster...
2015-06-23
424 reads
I’ll be doing a precon for SQLSaturday #421 in Columbus Ohio on July 10th, 2015 titled “Planning a High Availability and Disaster...
2015-06-23
424 reads
I’ll be doing a precon for SQLSaturday #373 in Puerto Rico on May 8th, 2015 titled “Planning a High Availability and Disaster...
2015-04-14
679 reads
I’ll be doing a precon for SQLSaturday #387 in Madison Wisconsin on April 10th, 2015 titled “Planning a High Availability and Disaster...
2015-03-19
1,197 reads
We are back in the keynote room with Adam Jorgensen talking to us about the financial state and health of...
2014-11-06
414 reads
This morning I will be live blogging the PASS Summit 2014 Day 1 keynote so those at home can follow...
2014-11-05
760 reads
I was just awarded as a Microsoft SQL Server MVP!
I can’t believe Microsoft has chosen me for this award and...
2014-10-01
507 reads
I presented a session titled “SQL Server AlwaysOn Quickstart” on September 10th for the 24 Hours of PASS event. You...
2014-09-30
1,252 reads
I learned a hard lesson when I first started as a DBA. Although to be honest, it’s not a lesson...
2014-09-30 (first published: 2014-09-25)
7,244 reads
Many of you may already know that I am a PASS regional mentor for the South Central region of the...
2014-08-18
490 reads
I’ll be doing a precon for SQLSaturday #331 in Denver Colorado on September 19th, 2014 titled “A Day of High Availability and...
2014-07-02
689 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