HDInsight and Buggy Whips
I sat the through the big announcements at the 2011 PASS Summit about the partnership between Microsoft and Hadoop. I...
2012-11-16
1,213 reads
I sat the through the big announcements at the 2011 PASS Summit about the partnership between Microsoft and Hadoop. I...
2012-11-16
1,213 reads
The Windows RT operating system is not the same as Windows. After all the talk about the upcoming OS and...
2012-11-14
2,372 reads
Every Database Administrator, developer, report writer, and anyone else who writes T-SQL to access SQL Server data, must understand how to read and interpret execution plans. This book leads you right from the basics of capturing plans, through how to interrupt them in their various forms, graphical or XML, and then how to use the information you find there to diagnose the most common causes of poor query performance, and so optimize your SQL queries, and improve your indexing strategy.
2012-11-12
17,111 reads
I’ve been posting about the Surface over the last couple of weeks and I’ve tried really hard to be positive...
2012-11-12
998 reads
I’m a little over two weeks with the Surface at this point. I’ve been travelling all of that time, so...
2012-11-11
1,471 reads
Two quick points, I’m putting this blog together using the Surface.. ooh… and this isn’t a keynote, but a spotlight...
2012-11-09
1,453 reads
I’m attempting to push this thing. I want it to be a production device, not just a consumption device. Frankly,...
2012-11-09
868 reads
Welcome to Day 2 of the PASS Summit!
It’s been a very exciting event so far. Today I’m presenting two sessions,...
2012-11-08
1,005 reads
Welcome to the fourth Kilt Day at the SQL PASS Summit. It might be a little silly, but it’s fun....
2012-11-08
1,335 reads
We’re off and running here at the PASS Summit.
New this year is live streaming all day.
Bill Graziano is introducing the...
2012-11-07
929 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