Unit Testing in Philadelphia
I’m helping teach a pre-conference session on Friday, June 5, 2015 at the Microsoft office in Philadelphia. This is an...
2015-05-22
691 reads
I’m helping teach a pre-conference session on Friday, June 5, 2015 at the Microsoft office in Philadelphia. This is an...
2015-05-22
691 reads
A few weeks ago, while at the incredible SQL Saturday Madison, I had a great discussion with a few of the...
2015-06-03 (first published: 2015-05-22)
2,412 reads
Reading Time: 4 minutesDo You Have a Cracked Foundation? in WOxPod!, episode # 004 –...
The post 004 – Cracked Foundation appeared first...
2015-05-22
354 reads
I have been enjoying XE alot recently ( from following SQLSKILLS) so I decided to write something that I used recently...
2015-05-22
163 reads
It is always a very special moment whenever you receive a notification of being selected to present at any event....
2015-05-22
360 reads
Found a couple good walkthroughs on enabling instant file initialization. However, I’m becoming more familar with the nuances of various...
2015-05-22
652 reads
Originally published May 2014:
Well, as all folks in the United States know, this weekend we celebrate Memorial Day,
Monday May...
2015-05-22
995 reads
My article on SQL Server Auditing has been published on www.SQLServerCentral.Com. Article discusses how default trace can be used effectively...
2015-05-22
603 reads
That is the first and last Katy Perry reference you will find on this blog or anywhere else in my life.
Last weekend I spoke at the 4th edition of my “home”...
2015-05-22
19 reads
Another post for me that is simple and hopefully serves as an example for people trying to get blogging as...
2015-05-21
1,170 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