Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Logging database access per user

dhorions
Contributor
0 Likes
881

I want to know if it is possible to temporarily log database changes on a per user basis.

The data I would need would be :

insert : - all new values of inserted record

update : - all <b>previous values</b> of updated record

- all <b>new values</b> of updated record

delete : - all <b>previous values</b> of deleted record

I do <b>not</b> mean a system wide table history (scu3).

I want to enable the logging for <b>one user</b> for a predetermined <b>period of time</b> over<b> all</b> database tables.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
445

I believe you can do either system wide logging (assuming your table is flagged for logging) OR enable SQL trace for your user (it needs to be done on all application servers as trace file is created per server).

3 REPLIES 3
Read only

Former Member
0 Likes
446

I believe you can do either system wide logging (assuming your table is flagged for logging) OR enable SQL trace for your user (it needs to be done on all application servers as trace file is created per server).

Read only

0 Likes
445

I don't want to enable table logging, because it will decrease performance too much for what I need it.

I think SQL trace will not report on the previous values of all fields, so although I also thought about that, I don't think it will do.

Am I right?

Read only

0 Likes
445

Dries,

You are correct.