Creating a Quick Dashboard Widget
I read Carlos Robles blog on creating an Azure Data Studio (ADS) insight widget and decided to try this for...
2018-11-08
1,042 reads
I read Carlos Robles blog on creating an Azure Data Studio (ADS) insight widget and decided to try this for...
2018-11-08
1,042 reads
R Services (SQL Server 2016) or Machine Learning Services (2017 and 2019 CTP) provide you with the ability to perform data analysis from the database itself using T-SQL.You can...
2018-11-08
18 reads
R Services (SQL Server 2016) or Machine Learning Services (2017 and 2019 CTP) provide you with the ability to perform...
2018-11-08
3,072 reads
Once again it is PASS Summit week in Seattle. This is the biggest event in the world for SQL Server and Microsoft Data Professionals to gather to connect, share...
2018-11-07
22 reads
Once again it is PASS Summit week in Seattle. This is the biggest event in the world for SQL Server...
2018-11-07
171 reads
Good morning from Seattle, at the Summit for the Professional Association of SQL Server. I’m lucky enough to be sitting at the blogger table this morning, watching the keynote...
2018-11-07
15 reads
For those of us who have been on twitter for a long time, we are familiar with the #sqlhelp hashtag....
2018-11-07
297 reads
Today is the first full day of the PASS Summit in Seattle, Washington. This is the 20th year of the...
2018-11-07
323 reads
I am proud and fortunate to be sitting beside stars of the community at the blogging table this year. I...
2018-11-07
239 reads
This scheduled post is coming to you from Seattle, where the PASS Summit 2018 has just kicked off. Because it...
2018-11-07
201 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