[英]Execute SQL stored procedure from BizTalk
I have three tasks to do in my BizTalk orchestration 我在BizTalk编排中要完成三个任务
Example data 示例数据
stored procedure [databasename].[storedprocedurename] 'param1Value', 'param2Value'
存储过程[databasename].[storedprocedurename] 'param1Value', 'param2Value'
存储过程[databasename].[storedprocedurename] 'param1Value', 'param2Value'
table [databasename].[tablename] (id integer,desc nvarchar(50))
表[databasename].[tablename] (id integer,desc nvarchar(50))
UPDATE 更新
Rephrase: Tasks are 改写:任务是
How to call stored procedure from BizTalk orchestration with parameters from incoming XML message 如何使用传入XML消息中的参数从BizTalk业务流程中调用存储过程
How to do insert into DB table from orchestration (and get back result of operation) 如何从业务流程插入数据库表(并返回操作结果)
How to do update with dynamic "where' value conditions from incoming xml 如何使用传入XML中的动态“ where”值条件进行更新
There is full documentation here: Executing Stored Procedures in SQL Server by Using BizTalk Server 这里有完整的文档: 使用BizTalk Server在SQL Server中执行存储过程
WHERE
clause(s). 包括将在您的WHERE
子句中使用的参数。 BTS.Operation
). 将业务流程绑定到此发送端口(或可能基于BTS.Operation
在发送端口上创建过滤器)。 NULL
is either set to xsi:nil=true
(use the Nil
functoid), or that it's not present in the destination (use a Value Mapping
functoid, or a method to remove empty nodes in a pipeline or helper class ). 确保将以NULL
形式进入的节点设置为xsi:nil=true
(使用Nil
xsi:nil=true
),或者在目标中不存在该节点(使用Value Mapping
,或使用方法来删除空值)管道或助手类中的节点 )。 SELECT
or via OUTPUT
parameters) or XML Polling (if your procedure returns a resultset using FOR XML
). 如果要从SQL Server返回数据,请考虑使用强类型(如果过程结果集是作为普通的旧SELECT
或通过OUTPUT
参数返回的)或XML轮询(如果过程使用FOR XML
返回结果集)。 Avoid vanilla procedure calls unless you don't expect to deal with return data from the procedure. 除非您不希望处理该过程的返回数据,否则请避免使用普通的过程调用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.