SSIS ReportGenerator Task
Did you ever faced a situation when needing to generate dynamically a SQL Server Reporting Services Report on-demand, at some...
2014-09-22
410 reads
Did you ever faced a situation when needing to generate dynamically a SQL Server Reporting Services Report on-demand, at some...
2014-09-22
410 reads
I’ve wanted to do this for a while, decided to make the time commitment and see what happens. See the...
2014-09-22
550 reads
Andy wrote a post today called The End of the Mentoring Experiment, which is something we’ve talked about for some...
2014-09-22
729 reads
Windows Cluster Service use the “heartbeat” process to check whether each node is alive at both the OS level and SQL Server level. Heartbeat signals works on UDP. Microsoft...
2014-09-22
21 reads
Grant Fritchey is running for the PASS board. He’s not running for President, though I’m not sure why he shouldn’t...
2014-09-22
778 reads
The whole idea behind PASS is to build a community of people who can assist each other in their daily...
2014-09-22
559 reads
I was recently asked where to go in Configuration Manager to change the settings for xp_cmdshell. It was then that...
2014-09-24 (first published: 2014-09-22)
8,020 reads
Recently I was building a new virtual machine for presentations, and loaded up my usual battery – Windows 7, SQL Server...
2014-09-24 (first published: 2014-09-22)
6,478 reads
Windows Cluster Service use the “heartbeat” process to check whether each node is alive at both the OS level and...
2014-09-22
11,660 reads
It’s Saturday a week out and I’m trying to finish up messages for the week. A lot to send this...
2014-09-20
722 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