Informatica ActiveVOS
- Informatica ActiveVOS 9.2.4.6
- All Products
<das:multiDataAccessRequest xmlns:das= "http://schemas.active-endpoints.com/data-access /2010/04/data-access.xsd"> <das:sqlStatement columnCase="uppercase" statementId="create-proc"> <das:statement>CREATE PROCEDURE AeTestCount(OUT result INT) BEGIN SELECT COUNT(*) INTO result FROM AeJUnitTestTable; END </das:statement> </das:sqlStatement> <das:sqlStatement columnCase="uppercase" statementId="call-proc"> <das:statement>CALL AeTestCount(@rowCount);</das:statement> </das:sqlStatement> <das:sqlStatement columnCase="uppercase" statementId="get-results"> <das:statement>SELECT @rowCount;</das:statement> </das:sqlStatement> <das:sqlStatement columnCase="uppercase" statementId="drop-proc"> <das:statement>DROP PROCEDURE AeTestCount</das:statement> </das:sqlStatement> </das:multiDataAccessRequest>
<das:multiDataAccessRequest xmlns:das= "http://schemas.active-endpoints.com/ data-access/2010/04/data-access.xsd"> <das:sqlStatement columnCase="uppercase" statementId="create-proc"> <das:statement>CREATE PROCEDURE AeTestCount @num_rows INT OUTPUT AS BEGIN SELECT @num_rows = COUNT(*) FROM AeJUnitTestTable END </das:statement> </das:sqlStatement> <das:sqlStatement hasResultSet="true" columnCase="uppercase" statementId="call-proc"> <das:statement>DECLARE @result INT EXEC AeTestCount @num_rows = @result OUTPUT SELECT @result RESULT </das:statement> </das:sqlStatement> <das:sqlStatement columnCase="uppercase" statementId="drop-proc"> <das:statement>DROP PROCEDURE AeTestCount</das:statement> </das:sqlStatement> </das:multiDataAccessRequest>
<das:multiDataAccessRequest xmlns:das="http://schemas.active-endpoints.com/ data-access/2010/04/data-access.xsd"> <das:sqlStatement columnCase="uppercase" statementId="create-proc"> <das:statement>create or replace PROCEDURE AeTestCountProc (PROP_NAME IN VARCHAR2, PROP_VAL IN VARCHAR2, TOTAL OUT NUMBER) AS BEGIN UPDATE AeMetaInfo SET PropertyValue = PROP_VAL WHERE PropertyName = PROP_NAME; SELECT COUNT(*) INTO TOTAL FROM AeJUnitTestTable; END; </das:statement> </das:sqlStatement> <das:sqlStatement columnCase="uppercase" statementId="call-proc"> <das:statement>{CALL AeTestCountProc(?,?,?)}</das:statement> <das:procedure> <das:parameter name="PROP_NAME" sqlType="string" mode="in">BogusName</das:parameter> <das:parameter name="PROP_VAL" sqlType="string" mode="in">BogusValue</das:parameter> <das:parameter name="RESULT" sqlType="int" mode="out" /> </das:procedure> </das:sqlStatement> <das:sqlStatement columnCase="uppercase" statementId="drop-proc"> <das:statement>DROP PROCEDURE AeTestCountProc</das:statement> </das:sqlStatement> </das:multiDataAccessRequest>