My lecturer said we should think about a report log that you use on a windows form.
basically what i am asking is if a user uses my winform that is connected to a database and they add, modify or delete from a database i could just have a button to show the "activity" if any in a text box or a .txt file. like a report log
i don't have code yet, if u can help me to get in right direction or an article or code will be helpful
In my opinion, you need to create an 'user-activity' database. It's simple to do, because it should at least have only one table, like this:
ActivityID - INT (IDENTITY)
UserID - INT -> user name, id or any other unique value
DatabaseID -> database name, id or any other unique value
TableId -> table name, id or any other unique value
UserActivity - VARCHAR(255) -> description of user activity
ActivityTime - DateTime
The number of tables or fields depends on your criteria.
Before you save data, save user 'activity'.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)