SQL Connections Fall 2011 Speaker Evaluations
In keeping with the past, I’m going to go ahead and post my evals for the two sessions I did...
2011-12-06
1,585 reads
In keeping with the past, I’m going to go ahead and post my evals for the two sessions I did...
2011-12-06
1,585 reads
This is a continuation of my DBA in Space journal.
As this scene starts on Lunar Exhibition set, Miss Friday is...
2011-12-06
477 reads
Extended events have been a bit of a personal “Elephant in the room” for me. I know they are there...
2011-12-06
2,737 reads
I’m sure that I’m not the only one with nightmares about the startup parameters in older versions of SQL Server...
2011-12-06
1,190 reads
To make the T-SQL function DATEADD more dynamic use variables. The example below , accepts an input parameter , in this case...
2011-12-06
2,331 reads
The voting for Red Gate Software’sDBA in Space Contest is to begin on Tuesday, December 6, after the final 15...
2011-12-06
701 reads
I've been a bit busy for the last few weeks, with the holidays, PASS, working on SSIS (more to come),...
2011-12-05
411 reads
This is a good way to start monday, with a meme. This month Thomas LaRock has provided us with the theme and his entry here. I thought of following...
2011-12-05
13 reads
This is a good way to start monday, with a meme. This month Thomas LaRock has provided us with the...
2011-12-05
681 reads
This month for #MemeMonday, Thomas LaRock (Blog | @SQLRockstar) has assigned a topic with a holiday bend to it. The question...
2011-12-05
499 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