PASS Summit 2012: Day -3
The Summit proper starts on Wednesday, but the Summit starts at registration. I left a little early from work setting...
2012-11-05
993 reads
The Summit proper starts on Wednesday, but the Summit starts at registration. I left a little early from work setting...
2012-11-05
993 reads
I’m continuing to work with the Surface.
BOOM
I just had my first crash. I was in IE when I tried to...
2012-11-02
1,162 reads
More stuff about the Surface.
Web browsing works extremely well so far. I enjoy how you can swipe to move back...
2012-11-01
805 reads
I’m going to do with this what I should have done with the Piece Of Fruit (POF), blog about the...
2012-10-31 (first published: 2012-10-28)
3,272 reads
Let’s talk some more about the basic keyboard. I’m really surprised at how well it works. But, it’s absolutely going...
2012-10-31
1,456 reads
I know I focus on community, SQL Server, professional development and process. But you need to do other stuff occasionally...
2012-10-26
734 reads
It may seem obvious, but I’ve heard more than one person suggest to me that statistics on a clustered index...
2012-10-22
1,169 reads
If you missed all the great speakers on the five city tour of SQL in the City, don’t despair. Many...
2012-10-17
1,147 reads
It’s just a query against the database. If things are running slow, buy some more memory, a faster CPU or...
2012-10-17 (first published: 2012-10-15)
3,003 reads
I’m working through some code that I haven’t touched recently and I’m running it for the first time on a...
2012-10-16
1,480 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