SysInternals now on Microsoft TechNet
It wasn't too long ago that Mark Russinovich announced he was becoming a Microsoft employee (new link as his old...
2006-11-27
1,701 reads
It wasn't too long ago that Mark Russinovich announced he was becoming a Microsoft employee (new link as his old...
2006-11-27
1,701 reads
I first saw this at SQL Server MVP Jasper Smith's blog post Which database is more secure? Oracle vs. Microsoft:
NGSSoftware...
2006-11-25
1,715 reads
One of the highlights of my weekday mornings is reading the editorial by
Steve Jones of SQLServerCentral.com. However, this past...
2006-11-23
1,550 reads
One of the blogs I follow is Andrew Coates' blog over at MSDN. He has posted about starting to help...
2006-11-21
1,464 reads
While at PASS, I created a thread in the forums: http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=61&messageid=322277 . It was an incredible week. I look forward to...
2006-11-20
1,326 reads
I've read numerous posts and several blogs discussing the SQL Server Central sale to Red Gate and at the end...
2006-11-20
1,644 reads
It's the last day of the show and my apologies for not blogging.
I haven't carried my laptop around this year...
2006-11-17
1,406 reads
I usually set aside Tues afternoons and Friday afternoons for my Database Daily work. Scanning a couple hundred links takes...
2006-11-11
1,595 reads
The Community Technology Preview (CTP) version SQL Server 2005 SP2 has been released by Microsoft. You can find the download...
2006-11-08
1,985 reads
Recently I started getting back into the game of chess as I began coaching my boys. Chess is a great...
2006-11-02
1,694 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