Failed to Create the Audit File
One day while checking things for clients, I happened across a fun little error message - "SQL Server Audit failed to create the audit file". It just so happens...
2017-12-31
67 reads
One day while checking things for clients, I happened across a fun little error message - "SQL Server Audit failed to create the audit file". It just so happens...
2017-12-31
67 reads
Templates are a powerful tool in so many trades and crafts. From decals and stickers all the way up to the largest cruise ships in the world, templates can...
2017-12-30
10 reads
Templates are a powerful tool in so many trades and crafts. From decals and stickers all the way up to...
2017-12-30
704 reads
Templates are a powerful tool in so many trades and crafts. From decals and stickers all the way up to...
2017-12-30
356 reads
No matter how simple the task or how versed we are with doing a security audit, it seems like we...
2017-12-29
354 reads
No matter how simple the task or how versed we are with doing a security audit, it seems like we...
2017-12-29
1,003 reads
No matter how simple the task or how versed we are with doing a security audit, it seems like we can always stand to learn just a little bit...
2017-12-29
10 reads
Several years back, when Extended Events was brand new, it was downright painful to try and convert the classic Profiler or Server Side trace to something meaningful and useful...
2017-12-28
9 reads
Several years back, when Extended Events was brand new, it was downright painful to try and convert the classic Profiler...
2017-12-28
554 reads
Several years back, when Extended Events was brand new, it was downright painful to try and convert the classic Profiler...
2017-12-28
243 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