Jump to content
  • 0

Insert Data Into Log File (Table)




How would I capture the User ID from my Authorized User Table to insert into a log file (table)? When an authorized user Inserts, Updates or Deletes a record to table I need to capture their ID and the Time. I know how to set up the trigger for this. My issue is capturing the logged in User ID.



Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Yes, this would be doable via trigger. 

As you mentioned, you know how to set the trigger up. 


It should be something like this right? But you need to pass a value from the inserted to the log file table.


How about implementing this to your table?



Then you can easily pull up that stamped user ID and pass it via trigger?
Does that make sense?
Hope this helps :lol:



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...