Independent consultant: How to find work
When I talk to people about switching from being a salaried employee to an independent consultant (see my presentation How to...
2014-01-14
1,842 reads
When I talk to people about switching from being a salaried employee to an independent consultant (see my presentation How to...
2014-01-14
1,842 reads
In just a couple months… on March 1… I’m going to jump into a lake in Minnesota. Now it’s cold...
2014-01-14
648 reads
I missed last month and I was a bit sad, but I was traveling the week before and speaking, and...
2014-01-14
779 reads
In my developer life, my motto was ‘Automate all the things’ and since transitioning to a DBA role, my motto...
2014-01-14
632 reads
I know it’s only January, but if you’re at all considering being a candidate you need to get going now....
2014-01-14
438 reads
Sometimes being a DBA really stinks. You try to follow best practices in everything you do. You’re not shrinking databases...
2014-01-14
781 reads
(Be sure to checkout the FREE SQLpassion Performance Tuning Training Plan, where you are getting week by week via email...
2014-01-14
1,656 reads
Announcing a flash sale today from 10a-12p Central time for my upcoming SQL Saturday Nashvillepreconference training session ‘Virtualization for SQL...
2014-01-14
567 reads
Here’s a quick post detailing a PowerShell script that can be used to change the password for a SQL Server Login. Regular readers know that I practice the philosophy...
2014-01-14
323 reads
Here’s a quick post detailing a PowerShell script that can be used to change the password for a SQL Server...
2014-01-14
2,281 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