DR drill - Part 1: General
Every DBA in their career should have done DR drill at some point, in fact it should be done in...
2014-09-18
2,460 reads
Every DBA in their career should have done DR drill at some point, in fact it should be done in...
2014-09-18
2,460 reads
A friend recently asked me about my involvement with PASS, and that lead to the two questions in the title....
2014-09-17
776 reads
The 12th cumulative update release for SQL Server 2012 Service Pack 1 is now available for download at the Microsoft Support site. Cumulative Update 12 contains all the hotfixes...
2014-09-17
13 reads
The 2ndcumulative update release for SQL Server 2012 Service Pack 2 is now available for download at the Microsoft Support site. Cumulative Update 2 contains all the hotfixes released...
2014-09-17
16 reads
Welcome to Part 1 of my SQL Snack Pack on Performance Tuning! The series is dedicated to help beginners understand...
2014-09-17
1,133 reads
A while back I had written a post about why I’m excited about Hekaton (now called ‘In-Memory OLTP’ – not sure...
2014-09-22 (first published: 2014-09-17)
8,461 reads
This year, I submitted my application to run for the PASS Board and it was accepted. This then is my...
2014-09-22 (first published: 2014-09-17)
6,197 reads
For the love of all that’s SQL, triggers are not toys! I’m not even talking about logon triggers or DDL...
2014-09-17
1,444 reads
The 12th cumulative update release for SQL Server 2012 Service Pack 1 is now available for download at the Microsoft...
2014-09-17
537 reads
The 2ndcumulative update release for SQL Server 2012 Service Pack 2 is now available for download at the Microsoft Support...
2014-09-17
2,329 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