SQL backup directly to Azure storage
Most companies required to keep their database backup offsite (on tape) for many years due to audit requirement. This normally...
2015-03-12
974 reads
Most companies required to keep their database backup offsite (on tape) for many years due to audit requirement. This normally...
2015-03-12
974 reads
One of the beloved feature of SQL server standard edition for HA is database mirroring, since you only have 2-node...
2015-03-12
498 reads
2015 should be a very busy year for most DBAs, due to the end of support of SQL server 2005...
2015-02-06
332 reads
I have been following a few blogs for a number of years now, and one of the most enjoying blog...
2015-02-02
296 reads
We all know that with the latest Windows 2012 R2 and SQL 2014, even with the standard edition, it can...
2014-11-14
418 reads
Every DBA in their career should have done DR drill at some point, in fact it should be done in...
2014-09-18
2,460 reads
You might already read lots of post about SQL server 2012 is license per core rather then per socket and...
2014-04-07
526 reads
Many of us are planning to move to SQL Server 2012 in the coming year, and one of the feature...
2014-04-01
346 reads
Every now and then we all need to perform backup or restore, for large databases when we need to perform...
2013-10-09
624 reads
Everyone knows that installing SQL server requires .Net frameworks 3.5, and it normally install by default, when you run the...
2013-03-12
612 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 Risk Vs Reward, The never...
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...
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