This is part of a script that has the set statement and then the execute statement.
set @sqlstring = ('dbcc checkident '+@tab_name+')')
exec (@sqlstring)
Let me know if you need more detail than that or, post some code we can look at.
David
David
@SQLTentmaker“He is no fool who gives what he cannot keep to gain that which he cannot lose” - Jim Elliot