February MVP – Melody Zacharias
The February MVP nomination goes to Melody Zacharias (B|T).
Melody hails from our neighboring country to the north, beautiful Canada. While we...
2016-03-17
435 reads
The February MVP nomination goes to Melody Zacharias (B|T).
Melody hails from our neighboring country to the north, beautiful Canada. While we...
2016-03-17
435 reads
In case you missed it, back in November I blogged about the importance of nominating individuals within the SQL Server...
2016-03-10
393 reads
If you are a member of PASS, you probably got an email from our President, Thomas LaRock. I interpreted his...
2015-11-25
620 reads
If you follow Grant Fritchey (B|T) at all, you know that every month he picks a “Speaker of the Month”....
2015-11-19
464 reads
If you have been around the SQL Community long enough, you probably have heard of a software company called Idera....
2015-10-28
700 reads
This weekend I’ll be traveling to Kansas City, Missouri for their annual SQL Saturday. Normally, I would just drive to this...
2015-10-01
467 reads
As I’ve mentioned before, living in Louisville offers up great opportunities to various events within the SQL Community. This weekend...
2015-09-23
533 reads
In the world of performance monitoring, there a number of ways to identify problems. Each method is different and usually, neither...
2015-08-13
724 reads
I recently blogged about the opportunity to speak at that the Omaha SQL Server User group. In a nutshell, being a co-founder...
2015-08-11
536 reads
If you follow the Twitter account for SQL PASS, you probably noticed that they are actively promoting individual Summit 2015 speakers....
2015-08-11 (first published: 2015-08-06)
1,807 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