The test code below shows that the DBCC action can be rolled back:
create table
(id int identity, val1 int)
go
insert
values (1),(2),(3)
select MAX(id) AS before from
begin tran
delete
dbcc checkident (
select MAX(id) AS inside_tran from
rollback
select MAX(id) as after_rollback from
dbcc checkident (
source
share