Tag Archive: mssql

Feb
26

MSSQL and ON UPDATE

I had to add a column to a database table on an MSSQL server today. It had to have the most recent update/insert time that the row was inserted/updated. MySQL has a very easy way of doing this with a TIMESTAMP column type, with a DEFAULT value of CURRENT_TIMESTAMP, and then also an additional ON …

Continue reading »

Apr
11

Perl, FreeTDS and Cron issues

While converting some dodgy nagios-commands into cron scripts today, I came across an age-old issue when scheduling the final script in cron: The script works perfectly when running it on the command-line, but fails miserably when cron runs it. The usual answer here is “Check the environment variables”. The error I was getting was from …

Continue reading »