Get Rid of the Indexes
An idea that could save time and resources for backup and recovery in SQL Server.
2008-03-17
32 reads
An idea that could save time and resources for backup and recovery in SQL Server.
2008-03-17
32 reads
2008-03-16
37 reads
2008-03-13
30 reads
Scaling out is hard to do with SQL Server, but why doesn't Microsoft build a better solution?
2008-03-12
38 reads
When accepting an offer of employment, what do you do about NCAs and NDAs that you might be asked to sign? Steve Jones offers some advice.
2008-03-11
25 reads
How much of a contract for servicing SQL Server should we expect? Has Microsoft broken an implied contract with us?
2008-03-10
37 reads
2008-03-09
32 reads
A joint editorial this week from the Red Gate team looking back at the news of the week.
2008-03-07
35 reads
As DBAs we go to great lengths to ensure the security of our production data. But what happens when it moves off of a production server?
2008-03-06
40 reads
Steve Jones looks ahead to an interesting trip for the future of a couple of technical geeks.
2008-03-05
39 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