Don’t Be a Balloon!
I had a problem just before the festive period where one of our production SQL Servers was randomly grinding to...
2012-01-18
1,728 reads
I had a problem just before the festive period where one of our production SQL Servers was randomly grinding to...
2012-01-18
1,728 reads
*This is related to physical file size of a MDF or LDF file not internal allocation.
One of our user asked...
2012-01-18
5,264 reads
2012-01-18
24 reads
2012-01-18
13 reads
2012-01-18
12 reads
2012-01-18
42 reads
The Silicon Valley SQL Server User Group – Jan 17 2012 Thanks you everyone for attending session, here is the presentation...
2012-01-18
736 reads
Different queries are optimized for different objectives
Response Times and Throughput are two standard objectives.
Response Time is about retrieving the hits...
2012-01-18
849 reads
Struggling to source quality free content on SQL Server? Finding it difficult to fill the void between #TSQL2sDay and Un-SQL...
2012-01-17
416 reads
As a DBA, I enjoy knowing that the better job I do, the less likely it is that any of...
2012-01-17
952 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 Using CHOOSE()
Comments posted to this topic are about the item Re-Seeding a Broken Log Shipping...
Comments posted to this topic are about the item The DBA is Dead! Long...
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