Data Stewardship and the Promotion of Data Protection – Are You Vigilant Enough to Stop A Trainwreck?
If you are asked to be a Database Cop, and you follow the code of ethics of your organisation, especially...
2010-01-08
668 reads
If you are asked to be a Database Cop, and you follow the code of ethics of your organisation, especially...
2010-01-08
668 reads
The New Information Commissioner for the United Kingdom is Mr. Christopher Graham, he's working from Wilmslow, near Manchester, with a...
2009-12-01
1,359 reads
As mentioned in previous disaster recovery posts and article, during my current mandate I have been tasked with what will...
2009-11-11
12,078 reads
I am very impressed with Michel David’s work, and openly endorse much of his great piece of work at MontrealCityState.ca...
2009-11-06
1,762 reads
The past couple of days we have had some fun with a TeamBuilding exercise by means of designing our Pumpkin...
2009-10-30
2,085 reads
Here I go again, trying to finish up the translation. Thank you very much to local MVP Eric Moreau for his help fixing...
2009-10-26
858 reads
I have to admit, when asked to perform a migration from Oracle to SQL Server over the past couple of...
2009-10-26
597 reads
1linerForward: here's a webinar from Microsoft regarding this subject, the following is a summary of what was required to improve CRM performance.
Microsoft's...
2009-10-15
3,406 reads
La liste des fichiers restaurés devrait se trouver dans le répertoire suivant :
\\ServeurDeBD\Disque$\DirSauvegardesProd\DBlog\
Dès que la restauration a été complétée, nous...
2009-10-14
816 reads
Here is Part 3 of the translation for the French version of the Disaster Recovery for SQL Server Databases - comments...
2009-10-05
1,056 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