Registration is Open for SQLSaturday Orlando
It's taken a while to get here, but we're finally accepting registrations for the event. This link will take you...
2007-08-31
1,344 reads
It's taken a while to get here, but we're finally accepting registrations for the event. This link will take you...
2007-08-31
1,344 reads
I went and cleaned out the Central Publishing Group colocation cage at Viawest. We've been there for 3 years and...
2007-08-30
1,416 reads
Steve posted an interesting editorial on blogs at http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=263&messageid=393904 and the follow up discussion was pretty interesting. Read that if...
2007-08-30
1,531 reads
I previously blogged about using newid() to get random ordering and after chatting with Steve about it, decided to write...
2007-08-30
1,353 reads
It's an interesting debate on blogging in response to my editorial. I definitely thing blogging is worth a try. You...
2007-08-28
1,493 reads
Our one day free SQL Server event is slowly gaining momentum! Draft schedule is at http://www.sqlsaturday.com/schedule.aspx. 30 sessions total and...
2007-08-27
1,584 reads
I attended for the morning and Brian attended in the afternoon and did a session as well. It was interesting...
2007-08-27
1,335 reads
Actually we had a long meeting with the developers this morning and PMs over a remote desktop session and I...
2007-08-24
1,394 reads
Working with developers is always very interesting, especially when you are a client. I'm sure that I'm not the best...
2007-08-21
1,419 reads
We went for a site visit Tues and I think it will really work out well for us. Good parking,...
2007-08-17
1,405 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