Table Space – CS Part Deux
Another script, another day. And as promised, I am providing an update to the Table Space script that followed the sp_MStableSpace script. Not a lot more to be said...
2011-11-21
14 reads
Another script, another day. And as promised, I am providing an update to the Table Space script that followed the sp_MStableSpace script. Not a lot more to be said...
2011-11-21
14 reads
Another script, another day. And as promised, I am providing an update to the Table Space script that followed the...
2011-11-21
662 reads
Processing mode property of a partition/measure group determines how partitions will be available to users.
Processing mode has two possible options.
Regular....
2011-11-21
3,281 reads
This is a bit of ramble.
At about 2:15AM November 21st, 2011 my dad, Arthur Corbett, went home to be with...
2011-11-21
863 reads
I once talked about the DBA team building about 3 years ago, now when I look back, I still believe...
2011-11-20
3,350 reads
Many of you may have notice that I have been a little inconsistent with my posts lately. It’s been a...
2011-11-20
649 reads
This is the last in a series of posts on some SQL Server Analysis Services (SSAS) errors for which there...
2011-11-20
1,307 reads
I somehow made the Top 10 Community Choice Bloggers in the SQL Server Magazine 2011 awards (keep scrolling to the...
2011-11-18
1,484 reads
You can find the slides and scripts from today’s sesson at the SSWUG SSIS Expo, the materials can be downloaded...
2011-11-18
543 reads
I tuned into the Third Thursday sessions for November and wanted to try boiling down the talks to what I...
2011-11-18
2,839 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