5300 PASS Voters for 2014 Election
I was catching up on reading the minutes of PASS Board meetings and found the following except in paragraph 2...
2014-06-06
377 reads
I was catching up on reading the minutes of PASS Board meetings and found the following except in paragraph 2...
2014-06-06
377 reads
Today is the 70th anniversary of D-Day, a day worth remembering and celebrating to be sure. I like that we...
2014-06-06
392 reads
In a previous article we looked at CXPACKET waits, a wait type that is can be on the top of your...
2014-06-06
747 reads
It’s not like I can’t find plenty of great presentations here in the US, but, while I was over in...
2014-06-06
754 reads
It’s Friday, time to look back at the most popular RealSQLGuy posts of the week. Because it’s Friday and you’re...
2014-06-06
399 reads
In a previous article we looked at CXPACKET waits, a wait type that is can be on the top of...
2014-06-06
11,524 reads
Someone posted a note to me on Twitter that noted that Write-Host is not recommended for your scripts. I checked...
2014-06-05
1,047 reads
The combination of in-memory tables and natively compiled procedures in SQL Server 2014 makes for some seriously screaming fast performance....
2014-06-05
1,373 reads
Interesting day yesterday. A spirited discussion on Twitter, a challenging post from candidate Mark Broadbent, and a couple good threads...
2014-06-04
653 reads
This coming weekend is the SQL Saturday #307 in Iowa City, Iowa. I am really looking forward to attending this event...
2014-06-04
464 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