How would I reset the primary key counter on a sql table and update each row with a new primary key?
Why would you even bother? The whole point of counter-based "identity" primary keys is that the numbers are arbitrary and meaningless.