Deploying to Power BI Premium
Obviously the big news of the day is the announcement for general availability of Power BI Premium! And if you...
2017-06-12
211 reads
Obviously the big news of the day is the announcement for general availability of Power BI Premium! And if you...
2017-06-12
211 reads
A question that I answer what seems like all the time is how to run cross-database queries against Azure SQL...
2017-06-12 (first published: 2017-05-30)
3,691 reads
A question that I answer what seems like all the time is how to run cross-database queries against Azure SQL...
2017-05-30
524 reads
Yesterday I had the pleasure of delivering a webinar presentation in partnership with Pragmatic Works called “What is Power BI Premium?”.
New...
2017-05-23
946 reads
Yesterday I had the pleasure of delivering a webinar presentation in partnership with Pragmatic Works called “What is Power BI Premium?”.
New...
2017-05-23
177 reads
Last week on May 17th the Power BI team announced the release of the Power BI Report Server preview. Power...
2017-06-05 (first published: 2017-05-23)
3,113 reads
Last week on May 17th the Power BI team announced the release of the Power BI Report Server preview. Power...
2017-05-23
240 reads
Over the past couple weeks there has been a ton of news and announcements around the direction Microsoft is taking Power...
2017-05-19
1,857 reads
Over the past couple weeks there has been a ton of news and announcements around the direction Microsoft is taking Power...
2017-05-19
205 reads
Today I had the wonderful pleasure for leading a discussion regarding the products, services, and tools Microsoft provides in the...
2017-04-10
335 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