Putting the ORM debate to bed
Hopefully this should put the ORM debate to bed, either use an ORM or don't but please don't access tables directly…
There are obviously reasons behind all of this but...
2015-05-20
10 reads
Hopefully this should put the ORM debate to bed, either use an ORM or don't but please don't access tables directly…
There are obviously reasons behind all of this but...
2015-05-20
10 reads
The third Level in my Stairway to Virtualization series is now live at SQL Server Central! In this Level, we will...
2015-05-20
483 reads
SQL Server 2016 was recently announced. Top new features include:
Always Encrypted protects data at rest and in motion. With Always...
2015-05-20
710 reads
I wrote a short piece the other day trying to show how one can use tSQLt to test code. It’s...
2015-05-29 (first published: 2015-05-20)
5,695 reads
Reading Time: 3 minutesSometimes you have to do some things considered pretty strange in your...
The post SQL F.A.D. – Daily Identity...
2015-05-20
377 reads
On an otherwise uneventful, other than the normal busy,
plate full, heading towards the US holiday weekend, middle-of-the-week, over
the hump day,...
2015-05-20
1,126 reads
Hello everyone!
As you may already know - on 23rd May in Kiev will be held SqlSaturday 377.
Hurry up!
You can meet many...
2015-05-20
485 reads
Last week I posted Creating a SQL Agent Job Wrapper with PowerShell and SMO. In that post I created a...
2015-05-27 (first published: 2015-05-20)
5,340 reads
I do a lot of testing with security in SQL Server. And of course to do a thorough job of...
2015-05-20
717 reads
Yes after its initial release and pull out Microsoft has again made the Service pack 1 for SQL SERVER 2014...
2015-05-20
482 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