I have to create an application in .Net which will track the data changes in all the tables present in the DB without using Triggers .
I have some ideas which can be implemented to achieve the same.Need some suggestions from you guys.
Any more suggestion please enlighten me and suggest me which will be a good and efficient idea for this kind of application. I am using Sql Server as my db and my app will be in .Net framework.
I would suggest that you use the built in functionality: Change Data Capture
Change data capture records insert, update, and delete activity that is applied to a SQL Server table. This makes the details of the changes available in an easily consumed relational format. Column information and the metadata that is required to apply the changes to a target environment is captured for the modified rows and stored in change tables that mirror the column structure of the tracked source tables. Table-valued functions are provided to allow systematic access to the change data by consumers.
This has plenty of advantages:
The source of change data for change data capture is the SQL Server transaction log. As inserts, updates, and deletes are applied to tracked source tables, entries that describe those changes are added to the log.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.