We Are Community
Today I was planning on writing a summary post of PASS Summit experience but something happened last night that caused...
2011-10-19
1,156 reads
Today I was planning on writing a summary post of PASS Summit experience but something happened last night that caused...
2011-10-19
1,156 reads
This morning this caught my eye on SQLServerCentral.com: Maximizing SQL Server Throughput with RSS Tuning(it came with a catchy SQLCAT...
2011-10-19
675 reads
Since Microsoft released the official name for “SQL Server Code Named Denali” last week at the PASS 2011 Summit, it...
2011-10-19
832 reads
When you sometimes look at Execution Plans, you can see that the SELECT operator has
sometimes a so-called Memory Grant assigned....
2011-10-19
5,152 reads
Today we have a guest post from Phil Factor as Brad is on vacation.
‘ I used to fettle databases as...
2011-10-19
551 reads
In my last blog, I showed how the execution plan in denali has been enhanced by 2 new warnings ,conversion...
2011-10-19
796 reads
Microsoft and HP have announced another appliance, called the Database Consolidation Appliance (see my blog about the other two appliances). ...
2011-10-19
1,787 reads
I saw this about the iModela 3d printer, it’s priced under $1000, making it approachable if not quite cheap. 3d...
2011-10-19
626 reads
Starting Halloween Monday I will be a Technical Consultant for House of Brick Technologies.
To everyone out there saying "Didn't you...
2011-10-19
535 reads
I work with a client now that had a poster made of the top 10 values for the IT department....
2011-10-19
624 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