Batch Mode – part 1 (“The Beginning”)
This is the very first blog post in a new series on the Batch Mode, welcome & enjoy!
I will be going...
2014-08-05
149 reads
This is the very first blog post in a new series on the Batch Mode, welcome & enjoy!
I will be going...
2014-08-05
149 reads
Join me at SQL Live 360 this November!
I am hugely excited to have been selected to present at Live 360,...
2014-08-05
407 reads
Join me at SQL Live 360 this November!
I am hugely excited to have been selected to present at Live 360,...
2014-08-05
877 reads
I have been working on upgrading my laptop. Since my laptop housed a bunch of my virtual machines for various presentations and labs, that means also upgrading and/or converting...
2014-08-05
7 reads
I have been working on upgrading my laptop. Since my laptop housed a bunch of my virtual machines for various...
2014-08-05
1,366 reads
I was reading SqlServerCentral.com Articles Requested forum and saw this request.
Looking for an article that takes data from an XML...
2014-08-14 (first published: 2014-08-04)
9,615 reads
Coming up this week, I have been given the opportunity to do something I enjoy doing. I have been invited to present to the folks in Philadelphia. Sebastian...
2014-08-04
11 reads
Coming up this week, I have been given the opportunity to do something I enjoy doing. I have been invited...
2014-08-04
727 reads
It’s Monday time for this week’s weekly link round-up. If you want to catch these links “live” (so exciting), follow...
2014-08-04
469 reads
First, a quick update on the LinkedIn advetising campaign. One click so far, no registrations. More views than I expected...
2014-08-04
611 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