2007-07-10
1,036 reads
2007-07-10
1,036 reads
Next Tuesday, support for SQL Server 2000 servers on Service Pack 3a ends, so be sure you are moving to SP4.
2007-07-05
3,420 reads
Congratulations to two new members of the SQLServerCentral.com 3000 club: Jeff Moden and Noeld.
2007-07-03
1,444 reads
It's coming to Denver in September and there's still time to save. And attend the SQLServerCentral.com Reception.
2007-06-20
1,027 reads
2007-05-23
3,527 reads
Longtime author here, Michael Coles, has written a new book on SQL Server 2005 Programming and has sent us a sample chapter on SQLCLR programming. Download the chapter and source code and grab this great book from your favorite bookseller.
2007-05-03
4,295 reads
If you haven't seen it, I highly recommend all SQL Server administrators check out the post from Microsoft detailing the post-SP2 fixes.
2007-04-16
3,963 reads
We're opening the newsletter up to advertising for everyone. Get the news here.
2007-04-11
1,201 reads
SQLMaestro has a new version and is offering a discount to SQLServerCentral.com members.
2007-03-22
2,062 reads
2007-03-21
1,094 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