DBA Manager Needed in Orlando–Putting My Network to Work!
I”m working with a client in Orlando that needs a manager for their data team, seems like a prime opportunity...
2012-09-27
1,549 reads
I”m working with a client in Orlando that needs a manager for their data team, seems like a prime opportunity...
2012-09-27
1,549 reads
I bet most of us don’t think about installing software that we need/want to try. We’re either running as local...
2012-09-26
822 reads
This coming Saturday (September 29th) we’ll be having our sixth annualSQLSaturday at Seminole State College (our site partner since the...
2012-09-24
657 reads
I drove down Saturday morning to do a beginner presentation on SQL Security. Event was hosted at Rasmussen College, great...
2012-09-23
678 reads
For the third year Steve Jones and I are coordinating a very informal networking dinner on Monday night the week...
2012-09-21 (first published: 2012-09-15)
1,824 reads
In my Three Strikes post I wrapped up the sorry tale of trying to get an X1 Carbon delivered from...
2012-09-21
794 reads
Quick notes:
Because it was scheduled for 7 am local I decided to do it from home. Good plan, except it...
2012-09-21
831 reads
More stuff you may find interesting.
Prepare for your first security breach. Sobering. As data professionals we’re going to get pulled...
2012-09-20 (first published: 2012-09-18)
2,140 reads
Last Friday Lenovo told me my new laptop would ship this Monday, or “much much sooner”. Monday I called to...
2012-09-19
812 reads
Imagine that you use a piece of software as part of your work, but it’s not what you consider the...
2012-09-19
710 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