Press "Enter" to skip to content

Resetting Sequences on Tables with Default Constraints

Vlad Drumea is not a fan of sequences:

This is a script that I wrote to help me next time I might need to bulk reseed out-of-sync SQL Server sequences tied to default constraints.

Click through for a demo of the problem, as well as Vlad’s script to fix it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.