How Often Do You Give Your Server a Physical?
The start of a new series that looks at examining your servers and keeping track of their health.
2019-08-15
2,645 reads
The start of a new series that looks at examining your servers and keeping track of their health.
2019-08-15
2,645 reads
2019-08-12
687 reads
2019-08-05
308 reads
2019-07-26
667 reads
2019-07-18
666 reads
Recently a friend had an issue with their SQL Server as a result of a file change in their SQL Server database. In this short piece, I want to highlight the dangers of making some changes to an online database that might cause an unexpected outage. This is really the same whether you are changing […]
2019-07-09
5,261 reads
2019-07-05
829 reads
2019-07-01
866 reads
2019-06-28
865 reads
This Script will read the Estimated Time for recovery from Error Log
2019-07-08 (first published: 2019-06-26)
739 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