Revisiting the Task List
I've written a few posts in the past about time management, and thought I'd post an update with some lessons...
2009-04-20
594 reads
I've written a few posts in the past about time management, and thought I'd post an update with some lessons...
2009-04-20
594 reads
Blogging is both more fun and harder than it looks, so when someone is getting started I try to offer...
2009-04-20
550 reads
Time has flown by since my last update, busy time at work and struggling to get that done and find a few hours for PASS too. Here's a short version of what I've been working on lately: Added the Top 10 List page and have some starter lists from...
2009-04-20
1,208 reads
I've written quite a few posts lately on networking and a very common question is - where's the results? What do...
2009-04-19
985 reads
I've been writing a lot about networking lately and my efforts to learn/leverage LinkedIn, and along the way taken a few hits for opening up my Linked In network to include those of you who read my blog regularly and want to connect. The essence ...
2009-04-17
1,523 reads
If you've never looked at one of these they are compilations of some of the best/most popular articles since the...
2009-04-16
547 reads
Replication can be a complicated undertaking for many people. Learn how to get started by creating a publisher in this SQL School video from MVP Andy Warren.
2009-04-16
2,619 reads
I just had a call with John Baldwin who is leading the effort in Birmingham and there plenty of action...
2009-04-15
306 reads
A week or so ago I posted a note about reading How to Start a Conversation and Make Friends (worth...
2009-04-15
389 reads
I happen to notice this in a class recently that I had the rare student - one that could take notes...
2009-04-14
406 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