Stairway to SQL Server Virtualization – Level 1
I’m proud to announce that yesterday the first installment of my new Stairway series at SQL Server Central has been...
2014-08-07
1,037 reads
I’m proud to announce that yesterday the first installment of my new Stairway series at SQL Server Central has been...
2014-08-07
1,037 reads
Coming up on my schedule is another appearance at SQL Saturday Orlando. Orlando is quite special to me as it...
2014-08-07
690 reads
All the videos for the sessions at 24 Hours of PASS (Spring 2014) are available for free. Check the session schedule for...
2014-08-07
1,266 reads
The other day a secondary family member said “we’re still on Microsoft 2010”. Another said “My friend is using Windows...
2014-08-06
554 reads
I am not sure how many books by Seth Godin I do own, I guess that it is somewhere around...
2014-08-06
226 reads
I was reading Kendra Little’s ( b | t ) post on SQL Server Edition Changes and it reminded me of the work...
2014-08-15 (first published: 2014-08-06)
8,885 reads
One of the better graphics I’ve seen in a Connector that shows the timeline:
My thoughts:
Should You Run for the...
2014-08-06
748 reads
I was approached by a man at SQL Bits who only wanted to thank me for blogging. He said, “I...
2014-08-13 (first published: 2014-08-06)
8,119 reads
What
When you use the SchemaBinding keyword while creating a view or function you bind the structure of any underlying tables...
2014-08-06
1,129 reads
No viewed on LinkedIn yesterday. Increased the bid to $5 and now seeing views. Not sure it correlates, but probably....
2014-08-05
750 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