NJSQL User Group Presents In-Memory OLTP for SQL Server
If your local to the NY/NJ area, please see tomorrow night's agenda for SQL Server 2014 In-Memory OLTP feature! Microsoft...
2014-01-20
1,019 reads
If your local to the NY/NJ area, please see tomorrow night's agenda for SQL Server 2014 In-Memory OLTP feature! Microsoft...
2014-01-20
1,019 reads
After I read Greg Low’s post and my initial try, I kept on thinking that I need to come up...
2014-01-20
433 reads
After I read Greg Low’s post and my initial try, I kept on thinking that I need to come up...
2014-01-22 (first published: 2014-01-20)
2,355 reads
What a terrific week! I’m have a great start to 2014! Yesterday and today I had the opportunity to present...
2014-01-19
546 reads
Questions to Ask when Gathering Business Intelligence Requirements
When starting any project requirements are the key to being successful. Business intelligence...
2014-01-18
1,012 reads
Photo credit – Jenn and Tony Bot
Sometimes old stuff is just as cool as new stuff. Over the past few years,...
2014-01-17
781 reads
Ever say “one more minute” while working on something and then realize 30 minutes have gone by? My daughter has...
2014-01-17
645 reads
It’s Friday, time to look back at the most popular RealSQLGuy posts of the week. Because it’s Friday and you’re...
2014-01-17
400 reads
I was asked recently by Idera to take a look at the things that could cost a DBA their job....
2014-01-17
1,176 reads
Earlier today, I presented a session for Pragmatic WorksTraining on the T’s titled Necessary Evils, Building Optimized CRUD Procedures. In the...
2014-01-16
692 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