How easy it is to check which statements consuming most of the CPU & RAM–TIP #68
Problem:- One of the most important question comes in our mind what is the cause of slow SQL SERVER.
We...
2014-11-01
287 reads
Problem:- One of the most important question comes in our mind what is the cause of slow SQL SERVER.
We...
2014-11-01
287 reads
As I write this, I’m airborne and on my way to Seattle for the summit week (the Microsoft MVP Summit,...
2014-11-01
958 reads
2014-10-31
5 reads
2014-10-31
7 reads
2014-10-31
6 reads
2014-10-31
22 reads
In this session Prakash will walk through the process he has implemented to alleviates many of the pain points for...
2014-10-31
1,116 reads
https://www.flickr.com/photos/socal_jim/2070088596/Hello Dear Reader! It’s that time of year again. The leaves are turning, temperatures are changing, and Halloween is once...
2014-10-31
1,193 reads
Photo credit – Mike Lynch
A good cure to a creepy doll is a good old post that is still useful. In...
2014-10-31
984 reads
“It’s the most wonderful time of the year…”
No, not the end-of-year festival of repetitive music, overeating, and trampling on other...
2014-10-31
1,035 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