180 – Is It Time For A Turnaround?
What needs to change? The challenge to explore is are there things in your current day to day that needs...
2018-04-26
515 reads
What needs to change? The challenge to explore is are there things in your current day to day that needs...
2018-04-26
515 reads
One of the most important roles of a database administrator is to constantly protect the integrity of the databases and...
2018-04-26
564 reads
2018-04-26
446 reads
If you are a DBA, especially Infrastructure DBA, Production DBA or Operations DBA then you don't necessarily always know what...
2018-04-26
415 reads
On one of the last clients I have worked, I have implemented dbachecks in order to get the state of...
2018-04-26
495 reads
If you were like me, you would know your AG configuration by heart. However, what if you get busy with...
2018-04-26
379 reads
-- Health and status of WSFC cluster. These two queries work only if the WSFC has quorumSELECT*FROMsys.dm_hadr_clusterSELECT*FROMsys.dm_hadr_cluster_members
-- Health of the AGsSELECT...
2018-04-26
17,451 reads
Redgate Software is putting on a one day SQL Privacy Summit on May 18 in London at the Grange Tower...
2018-04-26
393 reads
CEIP (Customer Experience Improvement Program) is somethings runs from ages and almost each vendor perform it to collect product usage...
2018-04-26
9,002 reads
Third time in a month, I will be presenting Machine Learning Server, this time at SQL Saturday Wheeling
2018-04-25
27 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...
Telp/Wa 628218200203 Gedung Sutrado, Jl. Kenari 2 No.5 Lt. 1, RT.2/RW.3, Kenari, Kec. Senen,...
Telp/Wa 628218200203 Jl. Biak No.44 AB, RT.8/RW.11, Cideng, Kecamatan Gambir, Kota Jakarta Pusat, Daerah...
Telp/Wa 628217555651 Gedung Plaza Bank Index Ground, Jl. M.H. Thamrin No.57 Floor Suite GF-21,...
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