I reseed identity columns like this:
EXEC sp_MSforeachtable "DBCC CHECKIDENT ( '?', RESEED, 0)"
Query throws me an error if there’s no identity in the table. But I still need to reseed identity for all tables in the database that have an identity. (And do not throw an error if there’s no identity)
Are all the tables really empty?