02 Nov 2011 @ 10:10 PM 

I was looking for a way to have all my tables have a unique GUID (Globally Unique ID) as well as a “Last Updated” column that would automatically update both on INSERT and on UPDATE.

Through a few hours of experimentation, I created the following:

CREATE TABLE dbo.testing
    (guid            uniqueidentifier    NOT NULL DEFAULT NEWID(),
     lastUpdated     datetime2(7)        NOT NULL DEFAULT GETDATE(),
     col1            nchar(10)           NULL,
     col2            nchar(10)           NULL)
GO
CREATE TRIGGER dbo.trLastUpdatedTesting
ON dbo.testing
AFTER UPDATE -- not insert!
AS
BEGIN

More »

Posted By: Bogus Exception
Last Edit: 11 Nov 2011 @ 05:20 PM

EmailPermalinkComments (0)
Tags
Categories: Events, Statistics, SysAdmin
 14 Aug 2011 @ 5:23 PM 

GMail recently took away the ability to have an RSS feed create signatures for us. Luckily I’ve been using Wisestamp (http://www.wisestamp.com) for years, and it is just the thing you need. With it, you can take the output of any RSS feed and put the text at the bottom of your signature in every email you send out.

http://blog.atcp.us/wp-admin/post.php?post=3049&action=edit&message=1

Above, I’ve created a simple signature in Wisestamp, and when you do this in the editor, you have some really diverse choices below. More »

Posted By: Pat
Last Edit: 11 Nov 2011 @ 05:06 PM

EmailPermalinkComments (0)
Tags
Categories: Prog, SysAdmin, Technology
 05 Jun 2009 @ 12:26 PM 

crystal_clear_app_terminal

A fast one for everyone.

If you have occasion to use POSIX based systems like Linux, UNIX, and yes, even Macintosh, then you will end up using cron eventually to schedule things to be done on your behalf. Cron is the tool built into these operating systems, and can seem intimidating to a new user/admin. Here are two quick tips to making cron immediately useful.

1. Generate a cron template.

2. Generate a local copy of your cron jobs.

Create a file in your home directory called cronjobs. Copy and paste the below template, and use it when needed to make a cronjobs file for another user: More »

Posted By: Pat
Last Edit: 05 Jun 2009 @ 12:28 PM

EmailPermalinkComments (0)
Tags
Categories: SysAdmin

 Last 50 Posts
 Back
 Back
Change Theme...
  • Users » 50
  • Posts/Pages » 174
  • Comments » 61
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

ATCP, LLC



    No Child Pages.

Factoid



    No Child Pages.