PowerShellGUI Tools – Disk,Memory and Process – Modules
I’ve created a script which gives details of Disk, Memory and Process and its represented graphically.
Here, the scripts are enclosed in...
2014-02-20
1,733 reads
I’ve created a script which gives details of Disk, Memory and Process and its represented graphically.
Here, the scripts are enclosed in...
2014-02-20
1,733 reads
This is part of my series on building a virtual lab for use with SQL Server and Windows. You can...
2014-02-20
1,181 reads
Making or assembling electronics in America may be the next big trend in tech, but it’s nothing new for McIntosh....
2014-02-20
438 reads
In a follow-up to my blog post Low-rate recruiters – The bane of my existence, Michael Bramante (website) wrote me a...
2014-02-20
1,309 reads
It’s good to remember that the ideas and challenges of mastering a craft – any craft – have been around a while....
2014-02-20
657 reads
We have 2 different SQL Servers which both have a copy of the AdventureWorks2012 database in Full recovery mode.
One of...
2014-02-20
681 reads
I don’t like the MERGE statement. The syntax is weird, it’s tricky in terms of locks, and it has a...
2014-02-20
4,407 reads
In his new book “101 Whiskies to Try Before you Die” whisky expert Ian Buxton poses the fun challenge of...
2014-02-20
721 reads
When I try to attach mdf file I got following error below.
Solution:
There are multiple solutions to this
1 1. Move .mdf and .ldf to SQLServer install directory Data folder...
2014-02-20
66 reads
The guys at Overland Journal know how to adventure, and adventure well. Their magazines can be found both on coffee...
2014-02-20
907 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