TSQL Tuesday: Resolutions
Sounds like a good action adventure movie. The theme this month on TSQL Tuesday, thanks to our host, Jen McCown...
2011-01-11
1,011 reads
Sounds like a good action adventure movie. The theme this month on TSQL Tuesday, thanks to our host, Jen McCown...
2011-01-11
1,011 reads
Ever wonder what you can see in the performance oriented DMOs when stored procedures were encrypted? Me neither. But, I...
2011-01-05
605 reads
Originally submitted at SCOTTEVEST, Inc.
26 Pockets are perfect for everyday and travel items; includes the TravelSmartSystem?. The SCOTTEVEST revolution began...
2011-01-05
1,653 reads
This is a temporary post that was not deleted. Please delete this manually. (95b57a7c-aa49-471e-a63c-76ea6775d1d4 – 3bfe001a-32de-4114-a6b4-4005b770f6d7)
2011-01-04
525 reads
As I have done in previous years, I’m going to post the results from my sessions at the PASS Summit....
2010-12-23
802 reads
I ended up with 131 posts (1 late hit, sorry), not counting any duplicates with Brent or Steve. It was...
2010-12-20
889 reads
In the front yard, using the iPad & SQL Monitor
After a great deal of unseemly begging, I managed to acquire an...
2010-12-15
907 reads
Technology, especially information technology, is the greatest thing to ever happen to mankind, freeing us from toil and drudgery. Technology,...
2010-12-13
925 reads
Microsoft gave to me, an excellent new management language. Yeah, so it doesn’t rhyme or match the song in any...
2010-12-10
789 reads
I’ve finally got everything together to get the web site going for SQL Saturday #71. The call for speakers is...
2010-12-09
594 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