用程序让Access转Sql server,原来Table内带有标识列(自动编号),到Sql server怎么处理?
看过有相关资料,
alter table export_para add r_rec_id_replace bigint identity(1,1) not null
go
set identity_insert export_para on
go 
update export_para set r_rec_id_replace = r_rec_id
go
set identity_insert export_para off
go
alter table export_para drop column r_rec_id
go
exec sp_rename r_rec_id_replace r_rec_id
go结果还是不行,提示msg 8102 ,level 16,state 1,line 2
Cannot  updatae identity column 'r_rec_id_replace'.请问有什么办法?一定要用程序。我也知道可以手动到sql server 那边设置。