Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My requirement is i need to want columns what are modified columns and modified data
using select query only and unable to use triggers.please suggest some solution

Thanks
In Advance

What I have tried:

i have tried this query

SELECT name AS object_name
,SCHEMA_NAME(schema_id) AS schema_name
,type_desc
,create_date
,modify_date
FROM sys.objects
WHERE modify_date > GETDATE() - 10
ORDER BY modify_date;


but getting only table names not column names and column values please suggest is there any way
Posted
Updated 27-Jul-16 20:49pm

1 solution

Not sure if that is possible but workaround can be implementing rowversion[^].

Here are few articles on rowversion which may help you in this regard-
Introduction To Rowversion[^]
Alexander Kuznetsov : Using ROWVERSION to enforce business rules[^]
Track Data Changes In SQL Server 2012[^]

Please let me know if you have any questions in this regard.
Hope, it helps :)
 
Share this answer
 
Comments
Member 10236682 28-Jul-16 5:21am    
alredy created database now cant add rowversion.all the operations done by some clients application.what i need to do is track data changes only using sql select statment.because only client given select permission

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900