Webcast Presentation Materials: Introduction to SQL Server Security
Last Thursday, I delivered a presentation for Pragmatic WorksTraining on the T’s. The session for last week was Introduction to...
2013-05-07
672 reads
Last Thursday, I delivered a presentation for Pragmatic WorksTraining on the T’s. The session for last week was Introduction to...
2013-05-07
672 reads
It was another great year at SQL Saturday Jacksonville. For the last several years I have been lucky enough to...
2013-05-07
484 reads
I wonder if you’ve had the situation that I had before where you have to attach a database with one or few missing .ndf files. It seems pretty common...
2013-05-07
15 reads
I wonder if you’ve had the situation that I had before where you have to attach a database with one...
2013-05-13 (first published: 2013-05-07)
3,806 reads
I read quite a bit and it’s rare that I don’t have a book or magazine with me in case...
2013-05-07
682 reads
Like other mainstream commercial database systems, Microsoft SQL Server allows you to create multiple indexes on the same column of...
2013-05-07
1,221 reads
At the end of this month of May, I will be teaching Learning Tree’s 3 day SQL Server Virtualization course...
2013-05-07
783 reads
Deadlocks are caused by poor database design, inappropriate isolation level, inefficient code etc.
Checkout my article (Tips for Minimizing Deadlocks) on...
2013-05-07
918 reads
Checkout the sixth part of my XML support and SQL Server article series here.
In this part, you will learn about...
2013-05-07
567 reads
On May 9, 2013, at 3 PM EDT I will be presenting on 5 Steps Every DBA Should Take to...
2013-05-07
1,203 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