Four Kinds of Free – Some Comments
I’ve had this link about four kinds of free (and this link too) on my list for awhile, today seems...
2009-08-18
664 reads
I’ve had this link about four kinds of free (and this link too) on my list for awhile, today seems...
2009-08-18
664 reads
Jack Corbett sent me an email this morning about the Swiss SQLSaturday, very cool! They did a great job on...
2009-08-18
748 reads
I’ve touched on it some in the past, but it’s a question that comes up a lot when we discuss...
2009-08-17
1,269 reads
Not obvious how to do this, go to http://www.regonline.com/Checkin.asp?EventId=685107, login, then click on Agenda. You can then add any of...
2009-08-17
766 reads
Posted today, Andy Leonard is the second person on the Council, and we’re glad to have him. Read the announcement...
2009-08-17
642 reads
We’ve just posted our core guidelines for technical content on sqlpass.org. The short story is there are three main ways...
2009-08-17
976 reads
The Coldest Winter: America and the Korean War by David Halberstam ($15 at Amazon) was really the first reading I...
2009-08-14
704 reads
The official announcement was just posted, Kevin Kline is the first member of the Advisory Council. As I mentioned on...
2009-08-14
1,050 reads
Ran across this recently, 33 Ways to Use LinkedIn for Business and thought I’d post it since I’ve talked about...
2009-08-12
328 reads
I currently write the editorial for the PASS Connector which is published every two weeks as part of my role...
2009-08-12
420 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