Using the Error Output of the Derived Column
The other day I was building a simple data import package when I ran into a common situation; invalid conversions in a Derived Column. The conversion was taking an...
2012-02-01
23 reads
The other day I was building a simple data import package when I ran into a common situation; invalid conversions in a Derived Column. The conversion was taking an...
2012-02-01
23 reads
I've been a bit busy for the last few weeks, with the holidays, PASS, working on SSIS (more to come),...
2011-12-05
410 reads
This is my first time here at PASS and I got a swept away in all the excitement. I tweeted...
2011-10-13
432 reads
Welcome to the third and last day of the Named Pipes seminar. Today we will get into the consumer portion...
2011-09-28
555 reads
Yesterday, I set up the premise for using named pipes in SSIS. Today we are going to get into the...
2011-09-27
704 reads
There comes a time when you look at how something is being done and say, "Does it have to be...
2011-09-26
613 reads
I've been doing quite a bit of work for my upcoming SQL University class next and in it is a...
2011-09-23
779 reads
I've been doing quite a bit of work for my upcoming SQL University class
next and in it is a Script Component. These are the ones that live inside
of...
2011-09-23
23 reads
I've been doing quite a bit of work for my upcoming SQL University class next and in it is a Script Component. These are the ones that live inside...
2011-09-23
23 reads
While designing a package last week with our consultant, Latha Chandri (twitter), I came across a need to call a...
2011-06-30
8,933 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...
Telp/Wa 628218200203 Gedung Sutrado, Jl. Kenari 2 No.5 Lt. 1, RT.2/RW.3, Kenari, Kec. Senen,...
Telp/Wa 628218200203 Jl. Biak No.44 AB, RT.8/RW.11, Cideng, Kecamatan Gambir, Kota Jakarta Pusat, Daerah...
Telp/Wa 628217555651 Gedung Plaza Bank Index Ground, Jl. M.H. Thamrin No.57 Floor Suite GF-21,...
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