Hungarian Notation is misunderstood
Hungarian notation refers to a identifier naming convention. The variable indicates the variables use – as opposed to what they are....
2012-01-17
1,002 reads
Hungarian notation refers to a identifier naming convention. The variable indicates the variables use – as opposed to what they are....
2012-01-17
1,002 reads
I wrote a post recently on capacity planning, and then thought of one more thing. In addition to planning for...
2012-01-16
1,971 reads
In previous SSIS versions as the developer you were responsible for configuring all of your logging options, such as what...
2012-01-16
1,239 reads
Last week, I posted this month’s question for #meme15. As was mentioned in that post, the aim of these posts...
2012-01-16
765 reads
Twitter and Your Career With the new blog party on the block, we have Jason Strate (blog | twitter) asking us this month these two questions: Why should average...
2012-01-16
15 reads
Twitter and Your Career
With the new blog party on the block, we have Jason Strate (blog | twitter) asking us this...
2012-01-16
684 reads
This is the first part of a 3 part blog which will attempt to show some different ways of how...
2012-01-16
16,285 reads
If you have ever gotten this error message you may have been left scratching your head wondering why…kinda like me.
The...
2012-01-16
3,919 reads
Should an average Jane or Joe professional use twitter?
Yes.
Why?
Because, I’m using it.
Not enough reasons? <grumpy face> I knew you wouldn’t...
2012-01-16
678 reads
1) How can I execute a SQL Server Agent Job every few seconds? Administrators try to use SQL Server Agent as...
2012-01-16
1,825 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