Speaking At SQLSaturday #298 in Jacksonville on May 10, 2014
Got the email confirmation yesterday that I’m on the schedule – looking forward to being back in Jacksonville.
2014-03-24
505 reads
Got the email confirmation yesterday that I’m on the schedule – looking forward to being back in Jacksonville.
2014-03-24
505 reads
In celebration of the impending SQL Server 2014 release, and in recognition that a large percentage of my clients are...
2014-03-24
1,067 reads
I started reading about collations after I had a recent run in with them. As I read I started to...
2014-03-24
646 reads
I started reading about collations after I had a recent run in with them. As I read I started to...
2014-03-24
847 reads
<p>Hi All This is a note that I just sent out. I hope that this helps those contemplating upgrading to...
2014-03-24
1,117 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
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
Free Month of Plural Site
I'm interested in seeing your responses. Any relevant response will be accepted and a free month...
2014-03-24
1,501 reads
In SQL Server 2005, Microsoft introduced the Common Table Expression (CTE). CTEs share similarities with VIEWS and derived tables, but...
2014-03-23
1,625 reads
CISSP and Enterprise Architecture
One topic that professionals pursing Enterprise Architecture roles should focus on is security. Enterprise Architects are responsible...
2014-03-22
769 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