Error Authenticating Proxy | SQL and UPNs
Have you ever had an error when using a SQL Server Proxy Account? I ran across a misleading error. Let...
2014-02-10 (first published: 2014-02-04)
1,891 reads
Have you ever had an error when using a SQL Server Proxy Account? I ran across a misleading error. Let...
2014-02-10 (first published: 2014-02-04)
1,891 reads
How do I assign and enforce a service account for the SQL Server Services with Active Directory Group Policy?
The answer...
2013-12-20
6,852 reads
I presented for the PASS DBA Virtual Chapter several weeks ago and talked about different ways that Active Directory can...
2013-12-24 (first published: 2013-12-18)
3,438 reads
It was recently brought to my attention that a post with the script I talk about below could not be...
2013-11-18
506 reads
Things have been too quiet here on the blog, but there’s a reason (a few actually). This year has been...
2013-08-01
574 reads
I am beyond excited to announce that I have been accepted to speak at the annual SQL PASS Summit 2013...
2013-05-22
1,188 reads
Policy Based Management has 4 evaluation modes and if you are not already familiar with them you can go HERE...
2013-03-26
1,870 reads
I recently had to rename my laptop on which I have two SQL server instances. I have a default instance...
2013-03-14
1,695 reads
I blogged about this back in September of 2010, but technology changes so it’s time to revisit this again. Now...
2013-03-11
946 reads
This post is a live blog of the PASS Summit 2012 keynote from day 2 on 11/8/2012. This post is...
2012-11-08
656 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