Now to End of Year
My friend Steve Jones posted Shutting Down for a Week and in that he talked about doing too much, trying...
2011-12-02
762 reads
My friend Steve Jones posted Shutting Down for a Week and in that he talked about doing too much, trying...
2011-12-02
762 reads
It’s been a slow few weeks since my last update. This week I did a call with Karla and Wes...
2011-12-01
436 reads
Today the slate of candidates for the 2012-2013 term was announced;
Adam Jorgensen, Denise McInerney, Geoff Hiten, Kendal Van Dyke,...
2011-12-01
646 reads
There is nothing like having two children to remind you how strange, funny, and complicated language can be. Try answering...
2011-11-30
1,602 reads
Just saw the official announcement MS TechEd will be in Orlando June 11-14, 2012, at the Orange County Convention Center....
2011-11-30
1,561 reads
I was astounded to see this blog at #4 on the list from the recent SQL Server Magazine Community Choice...
2011-11-29
714 reads
2011-11-28
768 reads
Today we have a guest editorial from Andy Warren that looks at stress and how it impacts your job. He offers a few ways that you might better deal with it as well.
2011-11-28
228 reads
Today we have a guest editorial from Andy Warren that looks at the relationships you have with your co-workers.
2011-11-23
478 reads
The client I work with as a lot of conference rooms, all with the standard Polycom conference phone that works...
2011-11-23
672 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