Bringing Together Databases, Virtualization and Storage
A few weeks ago Bala Narasimhan from PernixData and I recorded a short conversation where we discussed the tips and tricks...
2015-05-08
385 reads
A few weeks ago Bala Narasimhan from PernixData and I recorded a short conversation where we discussed the tips and tricks...
2015-05-08
385 reads
Reading Time: 1 minutesIt is official! The next version of SQL Server will be SQL...
The post 002 – SQL Server 2016...
2015-05-08
673 reads
I got my annual two emails from the PASS organization with the notification to update my profile to vote. I’m...
2015-05-07
908 reads
Bala Narasimhan, Vice President of Products from PernixData, and I recently sat down and discussed the convergence of infrastructure, SQL Server,...
2015-05-07
373 reads
I’m continuing on with the Blogger’s challenge in this post.
Turning the Problem Around
In the last post, I wrote about limitations...
2015-05-22 (first published: 2015-05-07)
4,290 reads
It is that time of the year when PASS starts a process to help update memberships and clean up duplicate...
2015-05-07
448 reads
I have always liked the drawings done by MC Escher. Looking at his drawings has always forced me to look...
2015-05-07
427 reads
By David Postlethwaite
If you are thinking about using Cloud Computing then it’s worth considering the pros and cons.
Advantages of...
2015-05-07
565 reads
This post will help you create a SQL Server job to backup all the jobs in a SQL Server Agent of an instance. It’s an useful job that you...
2015-05-06
19 reads
This post will help you create a SQL Server job to backup all the jobs in a SQL Server Agent of an instance. It’s an useful job that you...
2015-05-06
19 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