Business Objects on Linux and SQL Server
This is just a quick post to share a lesson learned while I was on an engagement where the client’s...
2013-05-23
980 reads
This is just a quick post to share a lesson learned while I was on an engagement where the client’s...
2013-05-23
980 reads
We all dread the scenario whereby SQL Server is under so much load and has a complete lack of resources...
2013-05-29 (first published: 2013-05-23)
4,477 reads
I’ve been meaning to do this, and I finally had the chance recently to start working with Azure. Red Gate...
2013-05-27 (first published: 2013-05-23)
2,611 reads
In SQL Serve 2012, we can get the default data file and log file locations using a simple T-SQL query...
2013-05-23
670 reads
My latest article is up at MSSQLTips.com:
Disaster Recovery Planning for Microsoft SQL Server - Getting Backups and Restores Right
For more of...
2013-05-23
849 reads
Andy Leonard (blog | twitter) and I are teaming up to do a security presentation on SSIS. It's scheduled for Wednesday, May...
2013-05-23
1,047 reads
I hope you were able to attend my free webinar on Ad-hoc Reporting with SharePoint on May 21, 2013. If...
2013-05-23
1,249 reads
WOW! I was selected to present at the SQL PASS Summit 2013 in Charlotte, NC. in October! All I can...
2013-05-23
569 reads
When Andy Warren (b | t | Li)started SQL Saturday with #1 in Orlando, we weren’t sure it would succeed. After a...
2013-05-22
907 reads
Well-designed indexes are an important part of database optimization because they are the key factor in achieving optimal query performance and response...
2013-05-22
1,554 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