小问题。快来救命呀~!~!~!~~!~!快,快~!~!
se northwind
go
select * into #temp from dbo.Orders where OrderId=11111111111 ----这个语句用来得到表结构
go
select * from #temp
go
SET IDENTITY_INSERT #temp ON
go
insert #temp
select * from dbo.orders
go
select * from #temp
go
drop table #temp
go
执行后,出现如下:
-----------------------------
所影响的行数为 0 行)
(所影响的行数为 0 行)
服务器: 消息 8101,级别 16,状态 1,行 1
仅当使用了列的列表,并且 IDENTITY_INSERT 为 ON 时,才能在表 '#temp' 中为标识列指定显式值。
(所影响的行数为 0 行)
请问怎办?