Monday Morning SQL Break – May 4, 2015
It’s Monday time for this week’s weekly blog and twitter round-up for last week. If you don’t already, follow me on...
2015-05-04
740 reads
It’s Monday time for this week’s weekly blog and twitter round-up for last week. If you don’t already, follow me on...
2015-05-04
740 reads
Main change - SCG moved back to .Net framework 3.0 to restore support of SSMS 2008/2008R2
Few small fixes, additional logging, nothing...
2015-05-04
588 reads
The other day Tom Roush (b/t) and Tim Radney (b/t) were having a discussion on twitter about using scheduled windows...
2015-05-14 (first published: 2015-05-04)
6,508 reads
On last Friday , one of my colleagues had some issue related to accessing of SQL Server instance of database server...
2015-05-11 (first published: 2015-05-04)
5,935 reads
Why a seemingly innocent WHERE clause can cause large amount of data missing
In the previous post, ETL #71–Your data can...
2015-05-12 (first published: 2015-05-03)
6,287 reads
The number of Microsoft’s cloud services is growing by month, if not week, so that it’s hard to keep them all...
2015-05-03
680 reads
To use TFS Checking policy the first thing that you must do - is to add policy to your TFS source...
2015-05-11 (first published: 2015-05-02)
6,053 reads
Microsoft SQL Server is a relational database management system developed by Microsoft. As a database its primary function is to...
2015-05-02
829 reads
[read this post on Mr. Fox SQL blog] EDIT #1: Fri 19 Jun 2015 We received confirmation the Microsoft Support Team the bug can be reproduced – however at this point in...
2015-05-02
22 reads
[read this post on Mr. Fox SQL blog] EDIT #1: Fri 19 Jun 2015 We received confirmation the Microsoft Support Team the bug can be reproduced – however at this point in...
2015-05-02
25 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