Reassess Your Configuration
It's a good idea for anyone managing systems to periodically check them and see if anything needs to change.
2021-01-12
99 reads
It's a good idea for anyone managing systems to periodically check them and see if anything needs to change.
2021-01-12
99 reads
A recent hack through a network monitoring system is scary, but Steve thinks that we ought to not require these systems to have privileged access.
2021-01-06
192 reads
2020-12-28
548 reads
Learn how a Jenkins server can be used to schedule SQL scripts to execute against SQL Server.
2020-12-22
28,588 reads
2020-12-14
625 reads
2020-11-30
523 reads
2020-11-27
566 reads
2020-11-24
522 reads
2020-11-19
491 reads
2020-11-17
472 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