Switching Off Parameter Sniffing
Or, another way to put it, in most cases, shooting yourself in the foot.
I was not aware that the cumulative...
2010-11-15
2,899 reads
Or, another way to put it, in most cases, shooting yourself in the foot.
I was not aware that the cumulative...
2010-11-15
2,899 reads
Microsoft has announced changes to the MCM program. This page shows all the ways that you can become an MCM...
2010-11-12
1,336 reads
Today is Dr. Dewitt.
The ballroom, where the keynotes are held, is filled with extra chairs. The Summit organizers expect extra...
2010-11-11
794 reads
Today is Kilt Day at the PASS Summit. We’re going to try to arrange a group photo at lunch time.
The...
2010-11-10
782 reads
Sitting at the big kids table at the PASS Summit, ready to rock and roll. The Summit has not officially...
2010-11-09
666 reads
Mark Souza from the SQL CAT Team, some of the smartest & most capable of MS consultants in SQL Server, is...
2010-11-09
722 reads
Ted Kummert is still talking.
For the cloud, of course, they’re talking about SQL Azure. Microsoft really is throwing themselves into...
2010-11-09
681 reads
I’m sitting in Top Pot Donut. I’m having a fantastic apple fritter. I’m also trying out the capabilities of the...
2010-11-07
566 reads
A week from now will be Kilt Day at the PASS Summit. It’s probably way too late to order a...
2010-11-03
675 reads
This is just another reminder to please vote for my blog post on using PowerShell Remoting with SQL Server. It’s...
2010-11-03
576 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