在标识列插入数据有很多方法,我在网上搜到一个很简单的处理,就是数据类型转换,但就是想不起了,正急着用,
create table #(id int identity(1,1),dd varchar(100)) 
insert #(cast([id] as int),dd)
select 1,'ddd'我只记得用了cast函数,好像是把标识列转换了一下,
不用写那个SET   IDENTITY_INSERT     ON   
SET   IDENTITY_INSERT     off