SQLSaturday 97 Speaker Recap
Great Content + Great Speakers = Awesome Event
All the evaluations have been tallied, its official SQLSaturday #97 was a hit! As a...
2011-11-22
801 reads
Great Content + Great Speakers = Awesome Event
All the evaluations have been tallied, its official SQLSaturday #97 was a hit! As a...
2011-11-22
801 reads
Microsoft has released SQL Server 2008 Service Pack 3 Cumulative Update 2, which is Build 10.00.5768.00. I count only 3...
2011-11-22
1,797 reads
Last weekend I needed to go to Home Depot to get a five gallon bucket and a lid so we...
2011-11-22
713 reads
If your environment is anything like mine, backups are usually not allocated the speediest disk. Generally speaking, those disks are...
2011-11-22
1,950 reads
Microsoft has released SQL Server 2008 Service Pack 2 Cumulative Update 7, which is Build 10.00.4323.00. I count 18 fixes...
2011-11-22
1,834 reads
Finally, I have completed another book. I took the opportunity while traveling to catch up on some reading. Better yet, I was able to do this while testing out...
2011-11-22
14 reads
Finally, I have completed another book. I took the opportunity while traveling to catch up on some reading. Better yet,...
2011-11-22
642 reads
This is a continuation of my DBA in Space journal.
With each episode, DBA in Space becomes goofier and goofier. Episode...
2011-11-22
547 reads
The dynamic management view (DMV) sys.dm_exec_requests returns information about each request that is executing within SQL Server.
Instead of using Activity...
2011-11-22
1,508 reads
Normally I’m not a big fan of using traceflags, my advice is only to use these when it is absolutely...
2011-11-22
2,371 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