](50) NULL, [Dust] [NUMERIC](18, 0) NOT NULL,
[M.sandfrom tbl1'+ ' where [Name of the Costumer] = @party' set @params = '@party nvarchar (1000)' exec sp_executesqlINSERT INTO tbl2([Party],
我使用execute sp_executesql执行sp中的insert查询。查询已执行,插入正确发生。在使用scope indentity()之后,将值设置为一个输出段。但我错了:
procedure attempted to return a status of NULL, which is not allowed.