Azure SQL Data Warehouse Query Store
I personally think that query store has been a fantastic feature. I find myself using it for query performance troubleshooting...
2019-03-05
628 reads
I personally think that query store has been a fantastic feature. I find myself using it for query performance troubleshooting...
2019-03-05
628 reads
You cannot enable trace flags (globally or by session) within Azure SQL Database but did you know that some global...
2019-02-26
620 reads
As Microsoft states “online clustered columnstore index build enables you to optimize and compress your data with minimal downtime without...
2019-02-21
190 reads
Checking out the transaction log in Azure SQL Database. If you are curious like me, you will want to know...
2019-02-13
192 reads
Have you ever wanted to capture the T-SQL, waits, sessions IDs (etc) at a specific time for Azure SQL Database?...
2019-02-06
229 reads
I seem to be writing solely about Azure so to shake things up a bit I am going back to...
2019-02-05
195 reads
Here I am talking about SQL Data Discovery & Classification feature that is built into Azure SQL Database. With this feature you...
2019-02-04
213 reads
I do not usually link straight to other blog posts or technical papers but I really had to with this...
2019-01-24
312 reads
Checking out the transaction log in Azure SQL Database. If you are curious like me, you will want to know...
2019-01-23
1,670 reads
Getting straight to the point, I initiated a very common task recently, another scale up request. However, a new message...
2019-01-21
240 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