2015-05-13
5 reads
2015-05-13
5 reads
2015-05-13
6 reads
2015-05-13
9 reads
2015-05-13
25 reads
the san francisco sql server user group – may 13 2015
session evaluation
uploading presentation dac and scripts for today’s session….
scripts:
to...
2015-05-13
712 reads
A few things I had sitting in my draft folder:
Privacy policy has not updated since May 2009. I’d like to...
2015-05-13
318 reads
At the recent Microsoft Build Developer Conference, Executive Vice President Scott Guthrie announced the Azure Data Lake. It is a...
2015-05-13
1,563 reads
Reading Time: 2 minutesSometimes Fast & Dirty is OK. Other times, not so much. Sometimes...
The post SQL F.A.D. – Average Transactions Per...
2015-05-25 (first published: 2015-05-13)
5,803 reads
We're a little under 3 weeks away from what is sure to be the biggest and best Big Apple SQLSaturday...
2015-05-13
663 reads
Some Background
“Is there any way to start a SQL Agent job using a script or program?”
I’ve seen this question asked...
2015-05-22 (first published: 2015-05-13)
6,912 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