Microsoft MVP 2014 – SQL Server Award
This past week, I was awarded with the Microsoft MVP 2014 for SQL Server award. This is my sixth award...
2014-07-03
594 reads
This past week, I was awarded with the Microsoft MVP 2014 for SQL Server award. This is my sixth award...
2014-07-03
594 reads
This post explains how to monitor a multiple services on a group of servers with alternate credentials.
This script will allow...
2014-07-03
707 reads
This post explains how to monitor a multiple services on a group of servers with alternate credentials.
This script will allow...
2014-07-03
1,089 reads
The Midlands PASS Chapter will hold its next meeting on July 10. We meet at MicroStaff IT in Cayce, SC....
2014-07-03
465 reads
Do you always need a demo?
Is a demo always needed?
One of my more popular presentations I have been doing as...
2014-07-03
693 reads
Central Management Server and server groups provide a convenient way to manage multiple servers and databases in one place and at...
2014-07-03
2,392 reads
There are a million and one uses for synonyms. There are at least that many uses for SSIS. The reality is, not all of those uses are good for...
2014-07-03
9 reads
There are a million and one uses for synonyms. There are at least that many uses for SSIS. The reality...
2014-07-03
1,743 reads
Oh we are a bunch of high school kids at heart. Maybe high school never ends (and there’s a nightmare,...
2014-07-03
1,123 reads
SQL Server 2014
Below is a listing of the SQL Server 2014 new features and where you can find more information...
2014-07-02
1,951 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