Summit 2012 Keynote Day1
This post is a live recap of the keynote at the PASS Summit 2012 conference.
Bill Graziano opens Summit 2012 with...
2012-11-07
633 reads
This post is a live recap of the keynote at the PASS Summit 2012 conference.
Bill Graziano opens Summit 2012 with...
2012-11-07
633 reads
I’m not a politically minded person and this is not the type of post I would normally write. However, I’m...
2012-10-09
775 reads
I ran across the following error in SQL Reporting Services 2008 R2 a few weeks ago:
The report execution has expired or...
2012-06-27
12,457 reads
I’m officially on the slate and running for the PASS 2012 Nomination Committee!
I love the SQL Community and everything it embodies. ...
2012-06-13
671 reads
I was fortunate enough to get to present not 1 but 2 sessions at SQLRally 2012 in Dallas last week. ...
2012-05-15
753 reads
Things have been quiet around here lately and I have a one word explanation….SQLRally. There’s work and family and several...
2012-05-05
594 reads
This week I had an application team report the error “SQL Connection Lost”. Fortunately they also reported the exact times...
2012-03-06
1,691 reads
I just found out that I will be speaking at SQLRally Dallas in May. I submitted 3 sessions. As an...
2012-02-27
674 reads
I will be speaking for the PASS DBA Virtual Chapter on February 22nd, 2012. I will be delivering my presentation on...
2012-02-20
611 reads
Jes Borland will be speaking for the Performance Virtual Chapter this month. Don’t miss out on this free training. Here...
2012-02-17
758 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