Question

I'd like to take a table, generate it's hash string, store it, then compare it at a later predefined time and see if it matches, if not take note of the modification time and store that with the new change date.

This is because I believe an on insert trigger would cause a bad slow down if a batch of over 5000+ insert statements is submitted. I move large amounts of data per day and other than having a column of smalldatetime with a default get date, I have certain tables I do not have permissions to change the schema of, so I don't have a way to determine the last changed date of.

Was it helpful?

Solution

Is this question any use to you?

Check for changes to an SQL Server table?

OTHER TIPS

You can use CHECKSUM on various fields to do this.

Yes based on what I understand of what that does betelgeuce, that looks like what I was hoping for, is there a row-level version of this? or would I just put a where clause on this same statement?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top