Trace Flag 3226 - Suppress all successful backups in SQL server error log
SQL server error log contain all information about how a SQL server is running, what is happening and occurring for...
2016-01-13 (first published: 2016-01-08)
22,412 reads
SQL server error log contain all information about how a SQL server is running, what is happening and occurring for...
2016-01-13 (first published: 2016-01-08)
22,412 reads
With SQL server 2016 around the corner, I would like to share some of my thought on the usage for...
2015-11-24
749 reads
If you are new to a technology, you might want to have a place to get you started. It would be great if can be free and can guide...
2015-10-02
25 reads
Recently, there are lots of questions about SQL licenses, many of them came from the fact that they starting to upgrade to 2012/2014 from their old 2005 servers as...
2015-09-30
26 reads
Welcome back to DR drill series!
In the last post (here), we have highlighted a number of ways to setup disaster...
2015-09-22
1,503 reads
Often times database administrators were asked to restore production database backup to UAT or development environment, sometimes it will needed...
2015-07-10
1,006 reads
Many of the companies are using third party backup software for SQL server in order to help to reduce their...
2015-07-02
2,455 reads
Finally I join Twitter myself, so if you are interested to find me through Twitter, its here.
2015-07-02
331 reads
Every now and then we will need to convert datetime to string for display, and would you remember all the...
2015-04-16
455 reads
Just would like to take a moment to say thank you to Paul Randal, who is busy with his own...
2015-04-16
343 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 Risk Vs Reward, The never...
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...
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