Cheap But Good KVM Switch
I needed a KVM (keyboard-video-mouse) switch for home to let me switch between two machines, found the Trendnet 2 Port...
2008-04-03
331 reads
I needed a KVM (keyboard-video-mouse) switch for home to let me switch between two machines, found the Trendnet 2 Port...
2008-04-03
331 reads
Just a link today, but a good one on Building a Powerful Reputation that is a nice follow up to my...
2008-04-02
469 reads
Yesterday I found out that I am a new SQL Server MVP. I still have the feeling that I am...
2008-04-02
389 reads
I've been following their blog for a while at LibraryThing and so far it looks interesting. The basic premise is...
2008-04-01
270 reads
Looks like my family and I will make the trek down to Jacksonville in May for SQLSaturday. One of my...
2008-04-01
624 reads
This is a meeting reminder about our next PASS meeting scheduled for April 3, 2008. It will once again be...
2008-04-01
686 reads
I'm a little late on this one, but Cesar Cerrudo has announced he's going to demonstrate exploits to Windows Server...
2008-04-01
689 reads
Brian has just posted the schedule of sessions for SQLSaturday #3. I haven't gone through to see how many are...
2008-03-31
1,342 reads
I am here in sunny Orlando at End to End Training. I am very impressed with the new training facility....
2008-03-31
1,385 reads
As I've mentioned a couple times previously I teach a free 'how to be a speaker' course, mainly to encourage...
2008-03-30
1,385 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