Azure SQL Database - Backup
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
62 reads
One day while checking things for clients, I happened across a fun little error message - "SQL Server Audit failed to create the audit file". It just so happens...
2017-12-31
67 reads
One day while checking things for clients, I happened across a fun little error message – “SQL Server Audit failed to...
2017-12-31
1,260 reads
One day while checking things for clients, I happened across a fun little error message – “SQL Server Audit failed to...
2017-12-31
2,064 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
Templates are a powerful tool in so many trades and crafts. From decals and stickers all the way up to the largest cruise ships in the world, templates can...
2017-12-30
10 reads
Templates are a powerful tool in so many trades and crafts. From decals and stickers all the way up to...
2017-12-30
356 reads
Templates are a powerful tool in so many trades and crafts. From decals and stickers all the way up to...
2017-12-30
704 reads
From SQL Guatemala, we wish you a happy new year 2018.
We hope this new year brings you joy and zero:...
2017-12-30
332 reads
(last updated: 2018-03-27)
Despite features added in SQL Server 2005 (yes, 2005!) that allow for very flexible, granular, and robust security,...
2017-12-30
4,310 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