I’m trying to insert a date when a user decides to deactivate or activate an UserID. I’m trying to use a SP to trigger that but apparantly this is harder than I thought it would be.
I can do a
SELECT GETDATE()
to get the date but is there a way to insert that information from GETDATE and put it into a column I want?
Couple of ways. Firstly, if you’re adding a row each time a [de]activation occurs, you can set the column default to GETDATE() and not set the value in the insert. Otherwise,