DBCC CloneDatabase for SQL Server 2012
Dear All,In case you are wondering, title of the post is not a typo π DBCC CloneDatabase is going to be available for SQL Server 2012 :)For folks who...
2017-09-03
21 reads
Dear All,In case you are wondering, title of the post is not a typo π DBCC CloneDatabase is going to be available for SQL Server 2012 :)For folks who...
2017-09-03
21 reads
Dear All,
In case you are wondering, title of the post is not a typo π DBCC CloneDatabase is going to be...
2017-09-03
707 reads
Dear All, Very happy to share the 8th interview of #DataChannel. Dr. Leila Etaati MVP, MCT from New Zealand discusses Machine Learning using Microsoft Business Intelligence tools in...
2017-08-28
25 reads
Dear All, Very happy to share the 8th interview of #DataChannel. Dr. Leila Etaati MVP, MCT from New Zealand discusses Machine Learning using Microsoft Business Intelligence tools in...
2017-08-28
10 reads
Dear All,
Very happy to share the 8th interview of #DataChannel. Dr. Leila Etaati MVP, MCT from New Zealand discusses...
2017-09-11 (first published: 2017-08-28)
1,633 reads
Continuing on the series on SQL Azure Databases - Active Secondary, this post will explore the task of failing over to secondary.
Fairly straightforward task, just one needs to take...
2017-06-09
19 reads
Continuing on the series on SQL Azure Databases - Active Secondary, this post will explore the task of failing over to secondary.
Fairly straightforward task, just one needs to take...
2017-06-09
21 reads
Continuing on the series on SQL Azure Databases - Active Secondary, this post will explore the task of failing over to...
2017-06-09
424 reads
As a continuation of "SQL Azure Databases - Active Secondary" series started earlier, this post will cover how to connect to a azure SQL Database primary and secondary after...
2017-05-27
36 reads
As a continuation of "SQL Azure Databases - Active Secondary" series started earlier, this post will cover how to connect to a azure SQL Database primary and secondary after...
2017-05-27
18 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