PASS & SQL Bloggers
PASS is trying to find better ways to reach out to SQL Bloggers. They’re going to experiment with taking advantage...
2009-07-31
1,331 reads
PASS is trying to find better ways to reach out to SQL Bloggers. They’re going to experiment with taking advantage...
2009-07-31
1,331 reads
UPDATE: This post is incorrect. Adam nailed it in the comments. I explain my mistake here.
A question came up over...
2009-07-28
1,883 reads
Steve Jones, through a series of comments, emails, blackmail, back-alley deals & tons of whining, agreed to let me review a...
2009-07-24
600 reads
Need a new laptop bag? MVP Grant Fritchey brings us a review of a large and versatile brief case that's a little different than the rest.
2009-07-24
1,467 reads
Do you know how to start a conversation or how to join one? I usually wait for a pause and...
2009-07-21
673 reads
Do you want to get a glimpse into how the Microsoft Field Engineers would go about troubleshooting performance issues on...
2009-07-20
793 reads
With the GDR release, a whole new set of deployment functionality has become available to VSTS: DB.
2009-06-24
5,558 reads
Every day, out in the SQL Server forums, the same questions come up again and again: why is this query running slow? Why isn't my index getting used? In order to arrive at the answer you have to ask the same return question in each case: have you looked at the execution plan? Grant Fritchey provides the only dedicated and detailed book on this essential topic.
2009-02-10
48,160 reads
A description of the things to avoid and do when involved with a beta test.
2008-09-26
2,914 reads
An overview of how to collect data from TSQL into Operations Manager Performance Rules.
2008-06-05
7,109 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