Virtual Lab – New Domain User
This is part of my series on building a virtual lab for use with SQL Server and Windows. You can...
2014-03-20
1,085 reads
This is part of my series on building a virtual lab for use with SQL Server and Windows. You can...
2014-03-20
1,085 reads
This story begins, as so many often do, with a few key elements:1) A client who experienced a problem on...
2014-03-26 (first published: 2014-03-20)
9,562 reads
SQL Server 2014 has been released to manufacturers (RTM) and will be generally available April 1. Here is the official...
2014-03-20
1,129 reads
InfoWorld Magazine (http://www.InfoWorld.com) has published a new article by MidnightSQL owner Sean McCown, “Review: SQL Server 2014 pushes the pedal...
2014-03-20
721 reads
If you’ve followed my writing for a while you’ll know I’m a fan of translucency (transparency) in most things business....
2014-03-20
527 reads
My latest question of the day is up, this one called Alas, Poor Snapshot, I Knew Him Well. If you’ve...
2014-03-20
506 reads
This post is part of the SQL Community Project #DBAJumpStart by John Sansom. As I mentioned previously, this post has...
2014-03-27 (first published: 2014-03-20)
1,588 reads
The cost associated with Outbound Data Transfer is very important when you consider bridging your On-premise network with Windows Azure.
Yes, when I...
2014-03-25 (first published: 2014-03-19)
2,689 reads
I’ve been thinking for a while about what to submit for this year. I knew I wanted to have one...
2014-03-19
637 reads
I won’t be able to make it to the PASS Summit this year but I still consider myself part of...
2014-03-19
685 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