Big Brown: The Untold Story of UPS
Steve Jones recommended this one to me. It starts at the very beginnings of UPS and goes through pretty much...
2009-01-05
415 reads
Steve Jones recommended this one to me. It starts at the very beginnings of UPS and goes through pretty much...
2009-01-05
415 reads
I've always been in favor of investing in things that I think will benefit me long term, but all investments...
2009-01-05
1,590 reads
My friend Will Strohl leads this group and asked for help getting the word out. I'm planning to attend.
URL:http://orlando.dotnetnukeug.net/WhatsNew/Events/tabid/91/ctl/Details/Mid/428/ItemID/16/Default.aspx?selecteddate=1/6/2009
Speaker: Stan...
2009-01-05
367 reads
Last year we acquired a small aquarium for my daughter, and then upgraded to a whopping 10 gallon tank. Turned...
2009-01-05
4,025 reads
As many of you know I'm joining the PASS Board of Directors for a two year term beginning yesterday. I'm...
2009-01-01
390 reads
Only a few changes planned for this coming year to the blog (so far), none of them huge:
I plan to...
2008-12-31
1,414 reads
Something new for the end of the year - a recap of everything I posted for 2008. 303 posts if the...
2008-12-30
1,549 reads
Moving databases is fairly simple, but when you move a system database, there are a few extra steps to follow. MVP Brian Knight walks us through how to move temdb in this video.
2008-12-30
4,753 reads
Steve Jones tells me that the biggest advantage that the Kindle offers is the ability to browse and buy a...
2008-12-29
1,400 reads
I know it's not April 1st yet, but I wanted to throw out a couple comments and a challenge well...
2008-12-28
1,516 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