nate47
01-31-2007, 11:16 AM
Hi,
I'm somewhat of a novice to SQL, so apologies in advance for my ignorance.
I'm looking to to find if anyone knows the best way to add Date and Time to their own columns upon Insert or Update into the table.
Currently I have the columns ID, Email and SWAN, but have added Date and Time, in lieu of adding this functionality.
I'm using MS SQL.
Are triggers the best way to go about this, or can anyone recommend another way?
If so, does anyone have an example syntax that I could use/modify?
Cheers,
Nate
I'm somewhat of a novice to SQL, so apologies in advance for my ignorance.
I'm looking to to find if anyone knows the best way to add Date and Time to their own columns upon Insert or Update into the table.
Currently I have the columns ID, Email and SWAN, but have added Date and Time, in lieu of adding this functionality.
I'm using MS SQL.
Are triggers the best way to go about this, or can anyone recommend another way?
If so, does anyone have an example syntax that I could use/modify?
Cheers,
Nate