Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 how to count no of updated records

Author  Topic 

dasu
Posting Yak Master

104 Posts

Posted - 2004-09-17 : 00:49:51
Hello every body,
how to count number of updates (not updated records count) on
a table here asume a row may be updated twice then how
can i get the total no of updations in particular
table
please help me about this issue.
regards
dasu.g

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2004-09-17 : 00:58:28
is this on a per day basis?

1. create an audit table saving the record primary key (unique key),date updated and counter
2. create a trigger for updates, saving into the audit table

or

if it's important that you get the data updated, then you can just redesign the audit table and save each update then query for the count based on your criteria

just some ideas...
Go to Top of Page
   

- Advertisement -