Notes From the January 2014 MagicPass Meeting
I went 30 miles south last night for the first meeting of the year. Extra good night because I was...
2014-01-16
492 reads
I went 30 miles south last night for the first meeting of the year. Extra good night because I was...
2014-01-16
492 reads
This past weekend I was doing some early Spring cleaning and decided it was time to throw out two old...
2014-01-15
639 reads
Here are some of the questions I ask when someone is thinking about running for the Board:
Are you eligible? Read...
2014-01-15
549 reads
Something you have and something you know – that’s the heart of two-factor, sometimes called multi-factor, authentication. RSA was for years...
2014-01-15 (first published: 2014-01-09)
6,367 reads
I was a bit sad to see that Google bought Nest. I like upstarts that see a problem and solve...
2014-01-14
635 reads
I know it’s only January, but if you’re at all considering being a candidate you need to get going now....
2014-01-14
438 reads
First meeting of the year with Bradley Ball presenting Locking, Blocking, Latches, Deadlocks, and Spinlocks. Let them know you’ll be...
2014-01-13
670 reads
Let’s say you’ve decided to run, good! What do you do next? I’m not going to give you a blueprint...
2014-01-10
396 reads
I saw a discussion on Twitter yesterday where Kendal Van Dyke referenced the SQLSaturday wiki as a resource, I thought...
2014-01-10
392 reads
There was a blurb in the Connector today about an eligibility change for voting. The “change” is a requirement to...
2014-01-08
396 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