2007-12-20
1,920 reads
2007-12-20
1,920 reads
Test data is critical to being sure your application works, but is production data ok to use in test environments?
2007-12-19
533 reads
Being a part of the community means that there are certain standards that we'd like you to adhere to. Steve Jones brings you a few reminders of how to behave when posting in the community.
2007-12-19 (first published: 2007-01-01)
3,147 reads
Who owns the data that we generate ourselves? It's not as easy to answer that as you think.
2007-12-18
63 reads
Usually I'm the one working on my podcasts and starring in them. However I got invited to participate in and...
2007-12-18
1,442 reads
2007-12-17
160 reads
Licensing SQL Server used to be easy and could be again, though it is still better than licensing Oracle.
2007-12-17
256 reads
I'm sure that most of you know that you cannot turn off logging in SQL Server. You can minimize the...
2007-12-17
1,452 reads
If someone acts suspicious at work, do you report them? What if it's the CIO? What if data security is involved?
2007-12-14
106 reads
Malicious code embedded inside advertisements served on the web. What's next?
2007-12-13
76 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