我正在迁移需要使用已经存在的存储过程插入的数据。存储过程具有参数以及一个用于返回插入行的ID的select语句的返回值。在SSIS中的OLE DB Command中,我可以调用存储过程并将列值作为参数传递,我通常在存储过程上使用输出参数来处理“id”输出;但是当该过程使用select返回id值时,我不确定如何处理返回值。以下是我之前使用过的示例,它可以正常工作,但我需要获取从select返回的值:
exec dbo.uspInsertContactAddress
@Address = ?,
@ContactID = ?,
@DeliveryMethodId = ?,
@ID = ? output,
@Version = ? output
0
(http://sql313.com/index.php/39-main-blogs/maincat-dba/reporting-analytics/cat-ssis/43-ssis-stored-proceduress-with-return-values) - Mark Sowul