Beta Testing
I'm not big on beta testing, or at least haven't been for a number of
years because I can't afford the...
2007-07-13
1,397 reads
I'm not big on beta testing, or at least haven't been for a number of
years because I can't afford the...
2007-07-13
1,397 reads
If you've spent much time at all reading Steve Jones's blog posts and SSC editorials, you quickly glean that he...
2007-07-12
1,502 reads
Not a happy story, but if you've got a child I suspect it will be easy to decide to buy...
2007-07-12
1,405 reads
It's interesting being at a software company, especially one that's
building on another platform. I've never done this before, having
worked for...
2007-07-12
1,425 reads
What: Midlands PASS Chapter July Meeting
Where: Training Concepts (250 Berryhill Road, Suite 502, Columbia, SC)
When: 6:15-8:00 PM
Speaker: SQL Server MVP...
2007-07-11
1,459 reads
Lots of debate and disagreement on my recommendation to wait for SQL
Server 2008 instead of upgrading to SQL Server 2005...
2007-07-11
1,464 reads
Just when I was about to start a pool for the release date, Microsoft announced today it will release on...
2007-07-10
1,402 reads
Despite my casual approach to the editorials and my job, this is still
something of a business and Red Gate wants...
2007-07-10
637 reads
I've been doing a lot with DDL triggers in the last week or so and pulling out the relevant information...
2007-07-09
1,156 reads
I haven't posted much lately, but it has been a busy few months with many family activities. At work, I...
2007-07-09
454 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