Slides and Sample code: SQL Server Admin Best Practices with DMV's from the Houston TechFest 2011
Here's my official blog page for my presentation on SQL Server Admin Best Practices with DMV's from the Houston TechFest...
2011-10-15
933 reads
Here's my official blog page for my presentation on SQL Server Admin Best Practices with DMV's from the Houston TechFest...
2011-10-15
933 reads
Day two of sessions only had me attending three sessions. One of them was 3 hours. I started out after...
2011-10-15
615 reads
I’ll be posting a summit wrap-up after I return next week from my honeymoon. Until then, though, I wanted to...
2011-10-15
590 reads
SQL Server Books online defines the OLEDB wait stat type as “Occurs when SQL Server calls the SQL Server Native...
2011-10-15
6,259 reads
I’m writing this at the Seattle airport on Friday night with a couple hours to relax before the midnight flight...
2011-10-15
578 reads
Dr. DeWitt has spoken to the PASS Summit for the past two years – turning what was otherwise a very forgettable “day 3” keynote slot into a must-see event...
2011-10-14
13 reads
Dr. DeWitt has spoken to the PASS Summit for the past two years – turning what was otherwise a very forgettable “day 3” keynote slot into a must-see event...
2011-10-14
11 reads
Today’s keynote with Dr. DeWitt starts at 8:15am EDT. Click here to watch today’s keynote live. For information on today’s...
2011-10-14
1,689 reads
Wow,
It’s the last day of the 2011 PASS Summit. I can’t wait to get some sleep on the plane tomorrow.
Wayne...
2011-10-14
788 reads
2011-10-14
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