Reminder - SQLSaturday #4 in Orlando June 7-8, 2008
Last call! We've got a 2 day event running this time. Saturday is the more traditional (it's only #4 after...
2008-06-02
241 reads
Last call! We've got a 2 day event running this time. Saturday is the more traditional (it's only #4 after...
2008-06-02
241 reads
If you're not familiar with the term it means to make something safe/secure by using a trick to hide the...
2008-06-01
218 reads
A few colleagues of mine, Andy Leonard, Jason Massie, and Chuck Boyce, are all on Twitter. As a matter of fact,...
2008-05-30
1,531 reads
I have a CTP of SSRS 2008 deployed to one of my servers. Today I built a couple of reports...
2008-05-30
2,553 reads
I have been thinking about getting the MCT credential for about five years. During the MVP Summit I attended a...
2008-05-30
1,311 reads
Ran across this article about burnout and thought it worth posting. Burnout is not fun to experience and heading it...
2008-05-29
1,436 reads
There is a little quirk with NULLs when using the NOT IN qualifier. I use the term "quirk" loosely here...
2008-05-29
1,607 reads
Brian Kelley posted Giving a Presentation about a week ago and is worth reading, in particular his suggestion about Toastmasters...
2008-05-28
1,468 reads
Or maybe part 3, depending.
Amazon reduced the cost of the Kindle yesterday. It's $40 off, a 10% discount, down...
2008-05-28
1,695 reads
Last night the Midlands PASS Chapter had the pleasure of hosting SQL Server MVP Brian Knight. I was able to...
2008-05-28
1,556 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 Risk Vs Reward, The never...
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...
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