Thursday, July 4, 2013

Free .NET Decompiler and Assembly Browser - DotPeek.

Free .NET Decompiler and Assembly Browser - DotPeek.

Sunday, June 16, 2013

Photo: Old Style Car - Painting

Another great photo. Saw this great old style car at the side of the road, pulled over and ended up talking to some great ppl.

Tuesday, May 21, 2013

Microsoft: XBox ONE - The next generation XBox

Microsoft has revealed the next XBox. Officially called the, "XBox ONE". The specs as follows:

8 Core CPU
8GB Memory
500GB HDD
Blu-Ray
802.11n
HDMI I/O
USB 3.0

... more details to come ...


Wednesday, May 15, 2013

SQL Trigger: Updating a, "Modification_Date" with a Trigger

Never found a clear example online of simply updating a database's modification date with when a row is changed so I thought I would post one:

 =======================

 CREATE TRIGGER [dbo].[TRG_{TABLE-NAME}_Update_ModificationDate] ON [dbo].[{TABLE-NAME}]

AFTER UPDATE AS

 DECLARE @{UNIQUE-COLUMNNAME} [uniqueidentifier]

 SELECT @{UNIQUE-COLUMNNAME} = i.{UNIQUE-COLUMNNAME} FROM inserted i

UPDATE {TABLE-NAME} SET Modification_Date = GETDATE()
   WHERE {UNIQUE-COLUMNNAME} = @{UNIQUE-COLUMNNAME};

========================

Legend:
 {TABLE-NAME} = Name of Table to create the SQL Server Trigger on.
 {UNIQUE-COLUMNNAME} = Name of Column in table above that uniquely identifies a row.