SQL Sentry Pro Explorer is worth it...
UPDATE: 2015-04-28 15:49
- I created a few autohotkey scripts and solved the problem of collapsing panes and a few other...
2015-04-22
701 reads
UPDATE: 2015-04-28 15:49
- I created a few autohotkey scripts and solved the problem of collapsing panes and a few other...
2015-04-22
701 reads
UPDATE: 2015-04-28 15:49 – I created a few autohotkey scripts and solved the problem of collapsing panes and a few other...
2015-04-22
305 reads
Never really enjoyed reading through the statistics IO results, as it makes it hard to easily guage total impact when...
2015-01-28 (first published: 2015-01-21)
6,751 reads
Never really enjoyed reading through the statistics IO results, as it makes it hard to easily guage total impact when...
2015-01-21
213 reads
There are probably a common number of apps you pull up when you pull up your system. For example, I...
2015-01-16
205 reads
There are probably a common number of apps you pull up when you pull up your system. For example, I...
2015-01-16
649 reads
Why does this not have more recognition? In the experimentation of various file management and launching apps, I've tried several...
2015-01-13
826 reads
#Tl;dr article (time constraints prevented me from reworking significantly)
An article on SQL-Server-pro was forwarded over to me to research by...
2015-01-08 (first published: 2015-01-05)
8,574 reads
Today, I was reminded that global temp tables scope lasts for the session, and doesn't last beyond that. The difference...
2015-01-05
778 reads
currently on version 14.60
I'm a big fan of finding tools that help automate and streamline things that should are routine...
2014-12-24
1,541 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