如何在存储过程中设置SET IDENTITY_INSERT tablename on
CREATEPROCEDURE[aa_i]asSETIDENTITY_INSERTaaONinsertintoproductsselect*fromOpenRowSet(...
CREATE PROCEDURE [aa_i]
as
SET IDENTITY_INSERT aa ON
insert into products select * from OpenRowSet('SQLOLEDB','server=aa;UID=aa;PWD=aa','select * from aa')
GO
在建立存储中报错,小弟对存储过程不了解!
请大侠们指点一下
我给50分 展开
as
SET IDENTITY_INSERT aa ON
insert into products select * from OpenRowSet('SQLOLEDB','server=aa;UID=aa;PWD=aa','select * from aa')
GO
在建立存储中报错,小弟对存储过程不了解!
请大侠们指点一下
我给50分 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询