Configuration Manager Missing - Windows 10
SQL Server Configuration Manager is one of the fundamental tools for a DBA to do basic tasks like starting or...
2018-01-21
14,293 reads
SQL Server Configuration Manager is one of the fundamental tools for a DBA to do basic tasks like starting or...
2018-01-21
14,293 reads
SQL Server Configuration Manager is one of the fundamental tools for a DBA to do basic tasks like starting or stopping SQL Service, knowing how many instances and what...
2018-01-21
19 reads
SQL Server Configuration Manager is one of the fundamental tools for a DBA to do basic tasks like starting or stopping SQL Service, knowing how many instances and what...
2018-01-21
20 reads
Most of you must be knowing that backup in Azure SQL Database fully automatic. After the database is created and...
2017-12-31
739 reads
Most of you must be knowing that backup in Azure SQL Database fully automatic. After the database is created and the database is automatically backed up by Azure. One...
2017-12-31
62 reads
Most of you must be knowing that backup in Azure SQL Database fully automatic. After the database is created and the database is automatically backed up by Azure. One...
2017-12-31
15 reads
Continuing on the series on Adaptive Query Processing covered overhere, this post would cover what happens to adaptive joins when...
2017-12-23
558 reads
Continuing on the series on Adaptive Query Processing covered over here, this post would cover what happens to adaptive joins when plans are reused.
To give a...
2017-12-23
31 reads
Continuing on the series on Adaptive Query Processing covered over here, this post would cover what happens to adaptive joins when plans are reused.
To give a...
2017-12-23
23 reads
Dear All,
Earlier this year in August, I had the privilege of speaking at Data Platform Summit 2017 at Bangalore. As...
2017-12-23
412 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