Hi,
I created a database using SQL Server which I update through my delphi program. I want to know how I can write every change that occurs on the database (eg. when a record is inserted, or deleted) in a log file.
Please answer asap.
SQL creates a log file and records every change in it. However, it is not normally readable by you without third party software. This file will grow to mamouth proportions if not backed up regulary and shrunk. The purpose of the log file is to be able to recover data (and sometimes to a point in time to undo a bad action like accidentally delting the wrong table).
If you want to see who made what changes and when, then you need to set up audit tables and triggers to automatically put the information you want in these tables. I believe there are also 3rd party tools which can help you set this up.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.