A Full Day of Power BI with Me
Join me for a full day of Power BI in Baton Rouge, LA and Downers Grove, IL, where I will teach...
2015-04-13
1,420 reads
Join me for a full day of Power BI in Baton Rouge, LA and Downers Grove, IL, where I will teach...
2015-04-13
1,420 reads
Steps to restore SQL Server Master Database :-
1) Stop SQL Server Services
2) Add [-m] startup parameter in SQL Services from...
2015-04-23 (first published: 2015-04-13)
6,526 reads
Each SQL Server database has a setting called Compatibility Level that determines how T-SQL commands are interpreted and what features...
2015-04-12
1,778 reads
It was a great honor to be asked to join my associates from SolidQ at the Microsoft Virtual Academy Studios...
2015-04-12
176 reads
It was a great honor to be asked to join my associates from SolidQ at the Microsoft Virtual Academy Studios...
2015-04-12
446 reads
Hi Folks
Greetings to everyone!!!
So last week one of the report was having a performance issue. It had 10 datasets ,5...
2015-04-22 (first published: 2015-04-12)
6,368 reads
To increase performance of highly accessible tables, a new feature incorporated in Sql Server 2014 “In-Memory OLTP”.You can define a...
2015-04-21 (first published: 2015-04-11)
8,250 reads
2015-04-10
1,136 reads
I use PowerShell a lot and I write about using it to solve problems quite frequently. The fact that I...
2015-04-10
418 reads
I use PowerShell a lot and I write about using it to solve problems quite frequently. The fact that I...
2015-04-10
680 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