Category Archives: Software

Information related to software

SQL Cheatsheet

August 15, 2024

Multiple “Order By” Clause Separate the order by clauses with commas. Use “CASE” to Convert Non-String to String Value In this example, we want do display the SettlementType value (an integer) as a human readable value in a column named “Settlement”. Resulting SQL view. Update Row Value The basic command is: For instance:

Windows Special Folders

March 18, 2024

Windows uses an enumeration of special folder names to make it easier to find commonly used folders. Without this mechanism, we’d have to jump through a lot more hoops to determine this information since it is user dependent. I was trying to use a special folder as the root of a path for some common files shared by… Read More »

PowerShell Commands

August 21, 2024

File Search Related Operations Microsoft help on items in this section. Find Processes Get-Process (alias gps) allows you to get all running processes on your machine. It can also be used to create a filtered list. Find all processes with name that matches “mmc”. We are looking for an exact match so don’t need double quotes. All of… Read More »

Create Select Order on Server

February 12, 2024

The code below demonstrates how to create an order on a Select Server. The primary difference between clients and servers is that clients are created by a login process that provides a user and profile. Servers do not have profiles by default. Any order created by a Server will show up as created by “System”. I must make… Read More »

Use CancellationToken to Make Responsive Thread.Sleep() Wait

January 30, 2024

Using a time delay based on a Thread.Sleep() is truly easy. However, if you need a pause inside code that is using a CancellationToken, be aware that if the CancellationTokenSource calls the Cancel() method, Thread.Sleep() will ignore the request. CancellationToken Aware Sleep() In the example below, we get the WaitHandle from the token and pass in delay time… Read More »