To move all tables to 0 that have an identity column on the same row:
exec sp_MSforeachtable 'dbcc checkident(''?'', reseed, 0)', @whereand='and exists(select 1 from sys.columns c where c.object_id = o.id and is_identity = 1)'
Verification of identification information: the current identifier value is '33798', the current value of the column is '0'. DBCC execution completed. If DBCC printed error messages, contact your system administrator. Verification of identification information: the current identification value is "3359", the current value of the column is "0". DBCC execution completed. If DBCC printed error messages, contact your system administrator.
source share