Spools in Execution Plans
I got the question the other day, when are you likely to see a spool in an execution plan? Easy,...
2009-09-09
2,854 reads
I got the question the other day, when are you likely to see a spool in an execution plan? Easy,...
2009-09-09
2,854 reads
The new book is up on Amazon. I only worked on three chapters of Rob Walter’s new book and that...
2009-09-04
637 reads
I haven’t done well with this. I missed a post. I missed a bunch of workouts. I put on weight....
2009-08-29
1,331 reads
We’ve received wonderful support from the community. Brad McGehee has a list with great people on it who have volunteered...
2009-08-29
1,671 reads
Well, three chapters. The latest book I worked on is up at Apress. I only have three chapters in this...
2009-08-25
569 reads
I think the Professional Association of SQL Server users (PASS) is an extremely important organization for SQL Server DBA’s. Even...
2009-08-25
671 reads
I saw this question and my immediate thought was “Well, duh, the execution plan is recreated by a recompile.” But,...
2009-08-21
1,333 reads
I have two new books that I can heartily recommend. This isn’t a review of either book since I’ve only...
2009-08-20
573 reads
Well, actually, these are the guidelines for submitting anything to SQLPASS, but it includes the guidelines for SQL Server Standard....
2009-08-13
1,175 reads
For the one or two you that are not reading Buck Woody’s blog (and why aren’t you), you may not...
2009-08-12
708 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