DBA in Space: Behind the Scenes—Question 14
Part 1 of Question 14—The question.Part 2 of Question 14—The follow up to the question.This is a continuation of my...
2011-12-08
719 reads
Part 1 of Question 14—The question.Part 2 of Question 14—The follow up to the question.This is a continuation of my...
2011-12-08
719 reads
Welcome to the third of a few sponsor interview posts from SQL Saturday 99. After reading Arnie Rowland’s (Blog | @ArnieRowland)...
2011-12-08
483 reads
I have the privilege of attending SQL Skills Immersion Event week one in Atlanta GA this week. My expectations were...
2011-12-08
508 reads
Sixkill is the 39th Spencer novel, and the last that was written by Robert Parker before his death. The plot...
2011-12-08
650 reads
At our company we have two DBAs to take care of all the databases in the production and QA. It...
2011-12-08
1,520 reads
DBAs (Database Administrators) perform many different tasks, and one way to explain what a DBA is, is to describe the...
2011-12-08
2,184 reads
The time following the PASS Summit has been absolutely crazy for me. Upon returning home I spent some much needed...
2011-12-08
558 reads
Yay. I finally took the plunge and decided to take Exam 70-451. This is the MCITP exam for the SQL 2008 Dev track. Frankly, I had taken my time with...
2011-12-07
12 reads
Yay. I finally took the plunge and decided to take Exam 70-451. This is the MCITP exam for the SQL...
2011-12-07
607 reads
I wrote this piece as a guest on Bradmcgehee.com for the DBA in Space competition. Republishing here.
A DBA (Database Administrator)...
2011-12-07
999 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