Create Table [#Temp]
(
[old-id] int not null,
[new-id] int not null identity(14000,1)
)
これはOK
declare @NewIdentitySeed int
select @NewIdentitySeed = max([id])
from blog_content
Create Table [#RenumberContent]
(
[old-id] int not null,
[new-id] int not null identity (@NewIdentitySeed ,1)
)
これはダメ
理由は決定的じゃないから。かな?