SyntaxFix
Write A Post
Hire A Developer
Questions
Simply do this:
IF EXISTS (SELECT * FROM tablename) BEGIN DELETE from tablename DBCC checkident ('tablename', reseed, 0) END