SQL Server Data Services Announcement (Competitor to Amazon SimpleDB)
Mary Jo Foley reports that MS is signing up testers for a hosted SQL Server solution called SQL Server Data...
2008-03-06
733 reads
Mary Jo Foley reports that MS is signing up testers for a hosted SQL Server solution called SQL Server Data...
2008-03-06
733 reads
My friend Shawn Weisfeld is expecting more than 400 attendees at Orlando Code Camp this year. There will be at...
2008-03-04
350 reads
I'm not a bg fan of long meetings. I used to try and plan an hour a week staff meeting...
2008-03-04
894 reads
If you look at my blog roll Jeff Dunntemann is one of the ones recommend. Nothing about SQL Server there, but he...
2008-03-03
370 reads
SQL Server 2008 brings with is a new set of features involving compression. At first I was assuming this was...
2008-03-03
1,843 reads
I've read with interest some of Steve's editorials about SQL 2005 SP3 and in large part agree with him that...
2008-03-02
604 reads
As a DBA, documentation work is unavoidable, we need to do documentation about things we have done, for example, what...
2008-03-01
1,078 reads
In DBA world, usually two types of DBA are defined depending on what a DBA is focusing on, i.e. development DBA...
2008-02-29
1,905 reads
There are new TPC-E benchmarks available for SQL Server 2008. And it's not even out!!!!
The 3rd place, the IBM entry,...
2008-02-28
1,485 reads
I'm headed back to Orlando after a quick trip to Charlotte. Flew in yesterday and spent some time with my...
2008-02-28
1,303 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