Strange Issue of waittype – PREEMPTIVE_OS_GETPROCADDRESS
ISSUE : Today, My Friend is facing issue with SQL Server error logs on one of my production server. SQL Server...
2015-06-02
920 reads
ISSUE : Today, My Friend is facing issue with SQL Server error logs on one of my production server. SQL Server...
2015-06-02
920 reads
The 16th cumulative update release for SQL Server 2012 Service Pack 1 is now available for download at the Microsoft...
2015-05-25
705 reads
The 6th cumulative update release for SQL Server 2012 Service Pack 2 is now available for download at the Microsoft...
2015-05-25
980 reads
Finally after a long waiting period, Microsoft release SQL Server 2014 Service Pack 1 (SP1), Same is now available for...
2015-05-25
864 reads
Steps of Moving MSDB & Model SQL Server system Database to new locaation:-
1) Check current location of MSDB & Model Databases by...
2015-05-18
3,290 reads
Question : Database snapshot captures only data changes or it will also save real database from DDL changes (like table structure,...
2015-05-19 (first published: 2015-05-11)
5,627 reads
The 5th cumulative update release for SQL Server 2012 Service Pack 2 is now available for download at the Microsoft Support site. Cumulative Update 5 contains all the hotfixes...
2015-04-27
28 reads
The 15th cumulative update release for SQL Server 2012 Service Pack 1 is now available for download at the Microsoft Support site. Cumulative Update 15 contains all the hotfixes...
2015-04-27
19 reads
The 7th cumulative update release for SQL Server 2014 RTM is now available for download at the Microsoft Support site. Cumulative Update 7 contains all the hotfixes released since...
2015-04-27
32 reads
The 5th cumulative update release for SQL Server 2012 Service Pack 2 is now available for download at the Microsoft...
2015-04-27
701 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