PASS Summit 2012
Yes, I know you just got back from the 2011 Summit. Kinda like I just got back from vacation. But...
2011-10-31
1,471 reads
Yes, I know you just got back from the 2011 Summit. Kinda like I just got back from vacation. But...
2011-10-31
1,471 reads
Here’s one that I haven’t run into before. A colleague scheduled a meeting with someone else in the organization to...
2011-10-31
1,675 reads
Today, we have a special Halloween edition. For me, Halloween and computer geek go quite well together. And thinking about it, I wanted to try to better understand if...
2011-10-31
5 reads
Today, we have a special Halloween edition. For me, Halloween and computer geek go quite well together. And thinking about...
2011-10-31
1,924 reads
http://www.flickr.com/photos/socal_jim/2070088596/Hello Dear Reader! I've been a bit behind on the blogging but wanted to give you a bit of a...
2011-10-31
1,517 reads
Those who are fan of Glenn Berry’s DMV queries would have come across below query at-least once.
-- Hardware information from...
2011-10-30
11,581 reads
Over time, similar reports may be designed from variations of common queries and datasets. Creating one report to meet all...
2011-10-30
2,761 reads
Database users can become orphaned for a few reasons. For example, a database restore to another instance or deleting the...
2011-10-29
1,642 reads
Deepak Kumar (friend of mine and founder of http://www.sqlknowledge.com ) were chatting yesterday. We were discussing about audit feature in SQL...
2011-10-29
1,895 reads
After spending some time looking at SQL Server 2012 CTP3, it appears as if Transactional Publication with Updatable Subscriptions will...
2011-10-29
2,008 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