Backing up virtual machines on VMware ESX Server
I know VMware and Virtual Server
technology is becoming more and more prevalent in organizations as both
packages can greatly reduce hardware...
2006-05-17
1,627 reads
I know VMware and Virtual Server
technology is becoming more and more prevalent in organizations as both
packages can greatly reduce hardware...
2006-05-17
1,627 reads
The list server here at SQLServerCentral.com has a few quirks, one of which is that it doesn't run as a...
2006-05-15
1,437 reads
It's funny, but most articles in magazines get lost on my desk. I get quite a few subscriptions and rarely...
2006-05-15
1,449 reads
The May/Jone 2006 issue of TechNet Magazine has a feature on security. One of the articles is titled Deconstructing Common...
2006-05-12
1,540 reads
An interesting post on Database Apprenticeships. I think this is probably something we need in software development more than as...
2006-05-12
1,441 reads
Back in First Impressions of Professional SQL Server 2005 Integration Services,
I indicated I felt the book was worth the buy...
2006-05-10
1,468 reads
The SQLServerAdvisor mailing from SearchSQLServer.com had a link to a
very good article on cracking SQL Server passwords. The article, by
Kevin...
2006-05-09
1,608 reads
Dave Winer announced bringing back Share Your OPML
on Friday. I wasn't keeping up with many RSS feeds back when the
original...
2006-05-08
1,565 reads
If you were putting together a security awareness training program for
developers, what aspects of SQL Server security would you include?...
2006-05-06
1,848 reads
The SysInternals licensing has been updated on the SysInternals website.
The new licensing is something you'll want to take a look...
2006-05-05
1,482 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