When DBCC INPUTBUFFER disappoints
Today we have an alert from one of the client server about blocking, I have immediately start looking at it...
2012-01-30
1,734 reads
Today we have an alert from one of the client server about blocking, I have immediately start looking at it...
2012-01-30
1,734 reads
Breaking Down TempDB Contention (part 2)
Tempdb Contention via Idera Diagnostic Manager
I wrote a somewhat popular script and blog post a...
2012-01-30
3,033 reads
I needed to return an identity value recently from an insert for use in another piece of code. For a...
2012-02-02 (first published: 2012-01-30)
3,598 reads
I am officially announcing that I have now become an independent consultant and business owner. Becoming independent has always been...
2012-01-30
1,893 reads
While using a cube in SSAS is usually a great source for reporting, it is not always the best choice....
2012-01-30
2,356 reads
The Idera ACE program is something I’ve been involved with for over a year now. I’ll share a bit of...
2012-01-30
1,674 reads
Last time I dealt with the creation of subdirectories, in one or more root locations, to house my database backups....
2012-01-30
1,861 reads
The question came up, what are the top 3-5 things that you look at in a query. I realized then...
2012-01-30
1,838 reads
The call for applications is open today, a chance for six lucky people to do more in the SQL community...
2012-01-30
707 reads
Another article has published over at MSSQLTips.com. This one covers how to identify what stored procedures are set to run when...
2012-01-30
942 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 Risk Vs Reward, The never...
Telp/Wa 628218200233 Kem Tower, Jl. Landas Pacu Barat No.Kav 2 Blok B, RW.10, Gn....
Telp/Wa 628217555651 Ruko Harmoni Plaza Blok B No. 26-27, Jl. Suryopranoto No.2, RT.2/RW.8, Petojo...
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