MCITP
Despite being without power for a few days, a hectic scramble at work to get things done, and kids off...
2007-05-01
1,485 reads
Despite being without power for a few days, a hectic scramble at work to get things done, and kids off...
2007-05-01
1,485 reads
We had a blizzard on Tuesday in Denver. Apr 24 and we got nearly a foot of snow out at...
2007-04-25
1,431 reads
One thing is always certain about information technology: there is always change. This past week I was pitching in on...
2007-04-23
1,601 reads
I just finished the book Brute
Force: Cracking the Data Encryption Standard by Matt Curtin. It covers the work of...
2007-04-16
1,795 reads
The presentation How to Be a Consultant has been posted to the Midlands PASS Chapter website. The presentation was given...
2007-04-15
1,611 reads
I saw Brian's post on Microsoft's post on post sp2-fixes. Say that 10 times quickly.
They do a good job explaining...
2007-04-13
1,375 reads
Windows doesn't see 4GB. If you have a 32bit OS with 4GB of RAM, Windows can't see it all.
I saw...
2007-04-13
1,434 reads
Bob Ward posted on the PSS SQL Server Engineers blog a fairly long post on SP2 and the hotfixes thereafter:...
2007-04-11
1,449 reads
ApexSQL has announced a new viewer tool for ApexSQL Audit. ApexSQL Audit does a lot of the dirty work of...
2007-04-11
1,736 reads
Watching a Chefograpy on Giada De Laurentiis, I learned that she was considered very much an introvert and had a...
2007-04-10
1,452 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