Testing the Identity Column usage in SQL Server with PowerShell and dbatools
SQL Server uses identity columns to auto generate values, normally keys. When you create an identity column, it has a...
2017-04-07
570 reads
SQL Server uses identity columns to auto generate values, normally keys. When you create an identity column, it has a...
2017-04-07
570 reads
At the end of March I wrote a couple of posts discussing the state of IT industry. It looked at...
2017-04-07
301 reads
Webinar: on 12th Apr 10.00 AM PST, I will be speaking on “Streamline SQL Implementations”, if you are interested please...
2017-04-07
373 reads
It’s quite easy to hit the PrintScreen key and capture the whole screen. But how do we quickly capture a...
2017-04-07 (first published: 2017-03-22)
2,449 reads
This is a quick post to apologise in advance if all my historical blog posts get republished.
Recently it appears that...
2017-04-06
336 reads
Often times we as leaders within our respective shops tend to waste our time focusing on the wrong things. Think...
2017-04-06
380 reads
The new buzzword in the industry is “Artificial Intelligence” (AI). But exactly what is AI and how does it compare...
2017-04-06
1,141 reads
With the release of SQL Server vNext CTP 1.4 SQL Agent was released for use on Linux. To install it...
2017-04-06 (first published: 2017-03-22)
1,870 reads
Another post for me that is simple and hopefully serves as an example for people trying to get blogging as...
2017-04-06 (first published: 2017-03-22)
2,751 reads
I traveled to Cambridge recently for some meetings at Redgate Software and to attend SQL Bits. I arrived on Tuesday,...
2017-04-06
725 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...
Telp/Wa 628218200203 Gedung Sutrado, Jl. Kenari 2 No.5 Lt. 1, RT.2/RW.3, Kenari, Kec. Senen,...
Telp/Wa 628218200203 Jl. Biak No.44 AB, RT.8/RW.11, Cideng, Kecamatan Gambir, Kota Jakarta Pusat, Daerah...
Telp/Wa 628217555651 Gedung Plaza Bank Index Ground, Jl. M.H. Thamrin No.57 Floor Suite GF-21,...
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