Understanding Kerberos, Part III
Welcome back to both our Kerberos coverage and to another topic for SQL University's Security and Auditing Week. In today's...
2011-10-28
16,840 reads
Welcome back to both our Kerberos coverage and to another topic for SQL University's Security and Auditing Week. In today's...
2011-10-28
16,840 reads
One of the many conversations I had at the PASS Summit was about whether to pursue Direction A or Direction...
2011-10-28
647 reads
Couple of week back Megha Sharma send me an email with a document attached, this document is all about how...
2011-10-27
713 reads
On Saturday, October 29, 2011 at 2:45 pm, I’ll be presenting “Table Vars and Temp Tables – What you NEED to...
2011-10-27
708 reads
Welcome to Security week at SQL University. I apologize for the late start. However, if you want to do some...
2011-10-27
2,966 reads
Disaster recovery can be a huge project at any company. Considering the ways in which you build a plan that...
2011-10-26
1,357 reads
Part 1 – Parent Child Hierarchies and Pseudo GL Accounts
This post is born out of some real life lessons that I...
2011-10-26
5,541 reads
G’day,
I’ve noted a few instances lately of cases where VARCHAR(MAX) columns have been used unnecessarily, when a small value (for a...
2011-10-26
14,471 reads
As you may know, the TechEd in the U.S. is not the only one. There have been many all over the...
2011-10-26
862 reads
Let’s apply a little backup and restore knowledge, eh wot?
I introduce this whole concept in Applied SQL: You Have Homework....
2011-10-26
811 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