gdpr - panic part 4
In the first part of this series, we looked at where to find out more information about GDPR in the...
2018-02-08
120 reads
In the first part of this series, we looked at where to find out more information about GDPR in the...
2018-02-08
120 reads
In the first part of this series, we looked at where to find out more information about GDPR in the...
2018-02-08
104 reads
I’ve been using ReadyRoll for a small project and wanted to move some lookup data. There are some tables where...
2018-02-19 (first published: 2018-02-08)
1,948 reads
I was reminded of this topic after yesterday’s #SQLChat. Have you set professional goals for yourself? If so, have you...
2018-02-16 (first published: 2018-02-08)
2,076 reads
Do you ever need to use a text editor to apply regular expressions to files? If so, this post is for you! If not, you may wanna skip it...
2018-02-08
32 reads
For the last 7 years, I have been speaking at the PASSSummit. This event is usually in Seattle, but one...
2018-02-08
330 reads
While we’re on the topic of SQL Server Reporting Services: WHYYYYYY is the Reporting Service Configuration Manager so hard to...
2018-02-07
451 reads
More and more companies are considering a move to the cloud, but one aspect of such a migration that may...
2018-02-07
339 reads
Back to the SQL Server Basics with Wayne
Connecting to a SQL Server instance is one of the first things that...
2018-02-19 (first published: 2018-02-07)
2,899 reads
Tom Roush The SQL Family lost a much admired member to cancer last month, Tom Roush. In our little community,...
2018-02-07
401 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