2008-06-24 (first published: 2008-05-20)
2,246 reads
2008-06-24 (first published: 2008-05-20)
2,246 reads
Check Orphaned logins ie, not associated with any database on the current instance.
2008-07-16 (first published: 2008-05-20)
1,637 reads
SQL Server trainer and longtime expert, Andy Warren brings us a great article on one basic skill that every DBA should know.
2008-05-12
12,622 reads
2008-05-09
4,209 reads
2008-04-16
4,438 reads
An interesting script to handle file tasks from within SQL Server.
2008-04-16
5,394 reads
This article helps the DBA find and fix issues quickly by creating a DBA Morning Checklist.
2010-08-27 (first published: 2008-04-14)
59,359 reads
It has come to my attention that some of our MSDB databases are getting what I would consider large for a system database. Some of our MSDB databases are over 2 GB which is a little perplexing because I know we do not create any user defined objects in that database. Can you give me some insight into the issue? I know we have this issue with both SQL Server 2000 and 2005 instances.
2008-04-14
4,246 reads
2008-04-11
5,105 reads
2008-05-27 (first published: 2008-04-10)
1,767 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