Thank You: #passvotes
The results are in and it seems that I’ve been elected to a place on the PASS Board.
Thank you.
I will...
2014-10-15
495 reads
The results are in and it seems that I’ve been elected to a place on the PASS Board.
Thank you.
I will...
2014-10-15
495 reads
I saw a whole bunch of great sessions last month. I was all over the place from Las Vegas to...
2014-10-09
551 reads
Ever been in a fight? Ever been in one that’s not completely going your way? I’ve done this and seen...
2014-10-02
474 reads
I am putting up an abnormal Saturday morning blog post in support of the actions taken by the PASS Board...
2014-09-27
595 reads
While I was at the VMWare HQ getting some amazing training a few weeks ago, we had the opportunity to...
2014-09-26
669 reads
Having very recently gone through the nomination process for the PASS Board, I thought I would share a few things...
2014-09-24
504 reads
The latest update to my book, SQL Server Query Performance Tuning was released last week. This is the fourth edition...
2014-09-23
787 reads
The whole idea behind PASS is to build a community of people who can assist each other in their daily...
2014-09-22
559 reads
This year, I submitted my application to run for the PASS Board and it was accepted. This then is my...
2014-09-22 (first published: 2014-09-17)
6,197 reads
I am running for the PASS Board. You can read more about what I’ve posted and what others have to...
2014-09-19
536 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