Installing External Modules into SQL Server’s Python
So Microsoft have integrated Python into SQL Server, from the moment I heard that I thought to myself, “wow, this...
2018-09-03
365 reads
So Microsoft have integrated Python into SQL Server, from the moment I heard that I thought to myself, “wow, this...
2018-09-03
365 reads
Last month Oracle – (Larry Ellison, CTO and Executive Chairman) has introduced Oracle Autonomous database for OLTP system Oracle has already...
2018-09-03
294 reads
yeah, MemSQL for me its a combination of RDBMS and NOSQL and more of flexibility of both per our choice,...
2018-09-03
955 reads
This month i will try to write whats new going on in the market, as i could see many new...
2018-09-02
237 reads
Its been introduced by CISCO On November 19, 2015, system which helps cloud computing to reduce the response time from...
2018-09-02
283 reads
In this Azure Every Day installment, I’d like to talk about your organization’s subscription hierarchy. When working with Azure, it...
2018-09-14 (first published: 2018-08-31)
2,633 reads
Like many of my blog posts, this post is inspired by some work I was doing with a customer who...
2018-09-18 (first published: 2018-08-31)
4,162 reads
As data professionals, we should always strive to keep our systems updated and patched to ensure proper security of our...
2018-08-31
967 reads
Speaking at SQLSaturday Cambridge!
I’m proud to announce that I will be speaking at SQL Saturday Cambridge on September 8th 2018! And wow, 748 SQL Saturdays! This one won’t let you...
2018-08-31
19 reads
Speaking at SQLSaturday Cambridge!
I’m proud to announce that I will be speaking at SQL Saturday Cambridge on September 8th 2018! And wow,...
2018-08-31
323 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