Backup Checksums and Trace Flag 3023
One of the items I always flag when performing a health check on a server is whether backups are being...
2014-03-28 (first published: 2014-03-25)
3,614 reads
One of the items I always flag when performing a health check on a server is whether backups are being...
2014-03-28 (first published: 2014-03-25)
3,614 reads
Hi all, I’ve started a new job with eBECS which is a Microsoft Gold Partner in the ERP Business. Since...
2014-03-25
795 reads
(Be sure to checkout the FREE SQLpassion Performance Tuning Training Plan – you get a weekly email packed with all the...
2014-03-31 (first published: 2014-03-25)
2,371 reads
Tomorrow evening I have the honour of speaking at Microsoft’s office in Clausen, Luxembourg. The session I will be presenting...
2014-03-25
794 reads
Tomorrow at 11am PST I will be holding a free webinar, hosted by Tegile Systems, entitled ‘Avoiding Common SQL Server Virtualization Pitfalls‘.
The...
2014-03-24
774 reads
Once again it is an honor to attend such a great event and meet up with other like minded geeks....
2014-03-24
480 reads
This coming weekend is the SQL Saturday #287 in Madison, Wisconsin. It’s my first time at this particular SQL Saturday,...
2014-03-24
631 reads
It’s Monday time for this week’s weekly link round-up. If you want to catch these links “live” (so exciting), follow...
2014-03-24
1,390 reads
Nice to have a SQL track! Looked like it averaged 20-25 attendance per session.Ran smooth, thanks to Esteban Garcia and...
2014-03-24
530 reads
Rodney Landrum presentingLots of free form demos, very light on slides – nice changeLooked at Power Pivot, Power Query, and Power...
2014-03-24
609 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