redwards1966
New Member
I'm exporting table rows along with their rowid for some tables that don't have primary unique keys and using that rowid as a means to do some quasi synchronization to another system.
On some tables I'm getting duplicate rowid's in the export but it's from a row already exported in the same query. I'm using NO-LOCK on the query because for some longer running exports I don't want to block other processes from altering data. Is it the NO-LOCK that is causing the same row to appear multiple times in the query? For instance if the row is updated during my export run. Is there any way around this or a better way to do it?
On some tables I'm getting duplicate rowid's in the export but it's from a row already exported in the same query. I'm using NO-LOCK on the query because for some longer running exports I don't want to block other processes from altering data. Is it the NO-LOCK that is causing the same row to appear multiple times in the query? For instance if the row is updated during my export run. Is there any way around this or a better way to do it?