Home /

| RSS

T-SQL Return Empty String Instead Of Null

There are times when we want to return empty strings for column(s) which have NULL values. T-SQL makes this easy with ISNULL function. Two parameters for this function are:

The column in question
Replacement value

 
Here is an example query for Customers table in Northwind database. This query will select Region column [...]

[ More ] February 11th, 2009 | No Comments | Posted in Code Snippets |

Get A List Of Running Processes Using C# – Code Snippet

This code will retrieve a list of currently running process on a machine and write their names to console.

// Get A List of process using
// System.Diagnostics.Process class
List<Process> processes = Process.GetProcesses().ToList();

// Write them out to Console
processes.ForEach(x => Console.WriteLine(x.ProcessName));

[ More ] January 27th, 2009 | No Comments | Posted in Code Snippets |
  • Page 2 of 2
  • <
  • 1
  • 2