Make an SSIS package Delay or Wait for Data
Packages can be scheduled to run at a time when you expect data to be in a database. Instead of...
2014-07-30 (first published: 2014-07-21)
12,908 reads
Packages can be scheduled to run at a time when you expect data to be in a database. Instead of...
2014-07-30 (first published: 2014-07-21)
12,908 reads
The XML Task in SSIS allows you to parse through an XML file and read the nodes in the XML....
2014-04-14 (first published: 2014-04-07)
3,409 reads
The XML Task in SSIS allows you to parse through an XML file and read the nodes in the XML....
2014-04-07
450 reads
The Web Service task in SSIS can be used to call a web service command to perform a needed operation...
2014-03-31
4,700 reads
The Web Service task in SSIS can be used to call a web service command to perform a needed operation...
2014-03-31
971 reads
When creating an SSIS package it is always a best practice to use variables, and parameters in 2012, to avoid...
2014-03-24
2,634 reads
When creating an SSIS package it is always a best practice to use variables, and parameters in 2012, to avoid...
2014-03-24
447 reads
Now in SQL 2012 we have parameters that make it easy, but configuration files are still an option and I...
2014-03-20 (first published: 2014-03-17)
3,495 reads
Now in SQL 2012 we have parameters that make it easy, but configuration files are still an option and I...
2014-03-17
479 reads
Previously I wrote a blog on Top N and Bottom N reporting. There were a couple of gotcha I did...
2014-03-13 (first published: 2014-03-03)
2,997 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