Sitting Between Two Stools: Analysis Services 2012, Windows 8 and Market Niche Confusion at Microsoft
In my last post, I wrote that the game plan was to post by Dec. 10 on changes in data...
2012-01-24
1,986 reads
In my last post, I wrote that the game plan was to post by Dec. 10 on changes in data...
2012-01-24
1,986 reads
One of the things that has been annoying for a long time in SQL Server is adding lots of data...
2012-01-23
29,056 reads
Inspired by common emails and questions I see, I figured I’d do a series of blog posts on common mistakes...
2012-01-23
1,002 reads
I was working on a Cube in Analysis Services for a client recently and needed to sort on a field...
2012-01-23
3,851 reads
Since Microsoft recently released a couple of new Cumulative Updates for SQL Server 2008, I thought it was finally time...
2012-01-23
1,184 reads
I get 15-30 calls/emails a week from recruiters (not counting the dozens of auto-generated emails I get). Being a contractor...
2012-01-23
911 reads
Remember kids...
Anyone who knows me knows that I’m a big proponent of automating routine tasks. If I have to do...
2012-01-26 (first published: 2012-01-23)
3,573 reads
There are four different ways you can get information about deadlocks in your system. These are:
traceflag 1204traceflag 1222trace eventsextended eventsFor...
2012-01-27 (first published: 2012-01-23)
3,086 reads
It’s been quite a while – where did the time go? – since I had done a presentation for oPASS, so when...
2012-01-23
557 reads
Security is a very important part of every DBA’s role. If you are not clued up on security best practices...
2012-01-23
945 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 Risk Vs Reward, The never...
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...
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