SQL Azure Query Tuning
SQL Azure is still SQL Server at the end of the day. This means it is entirely possible to write...
2011-05-23
1,394 reads
SQL Azure is still SQL Server at the end of the day. This means it is entirely possible to write...
2011-05-23
1,394 reads
This year the PASS organization is asking us to vote on the PASS Summit 2011 sessions, not as a means...
2011-05-18
736 reads
I’ve put in several abstracts for the 2011 Summit. This year we’re voting for preferred sessions. If you’re interested in...
2011-05-10
735 reads
There’s a project over on code plex to come up with a mechanism for validating databases and generating the necessary...
2011-05-09
1,313 reads
Tom LaRock has a new meme for Meme Monday. It’s all about the problems caused in your system other than...
2011-05-02
797 reads
When last we left our intrepid hero he had successfully deployed to SQL Azure using the Data-Tier Application Package, a...
2011-05-02
1,906 reads
Welcome once more to the Miskatonic branch of SQL University. I see that most off you survived out last encounter…...
2011-04-28
1,733 reads
One of the CSS Engineers from Microsoft has released a diagnostic tool for SQL Azure. It’s worth a look. It’s...
2011-04-26
1,016 reads
You’ve set up your access to a SQL Azure site so you’re ready to go. Now how do you get...
2011-04-25
1,527 reads
We’ve all heard the scary stories. A developer starts testing Azure and then suddenly gets a thousand dollar bill on...
2011-04-18
1,559 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