on 08-06-2007 7:59 PM
Hi ,
where we specify the name of store procedure : if it has something like schemaname.storedprocedure name : in that case how shld i go about ?
since in data type we cannot give <b>.</b> .
Thanks
Hi,
<StatementName5>
<storedProcedureName action= EXECUTE>
<table>realStoredProcedureeName</table>
<param1 [isInput=true] [isOutput=true] type=SQLDatatype>val1</param1>
</storedProcedureName >
</StatementName5>
In the above structue, your question is how can we have scehma.spname in <table> .........</table> right?
If I understood u correctly,then
Take Constant [ Schema.SPname] -
>map to the target in <table> </table> node.
While calling the tables in AS400 we will use the same format.
Best regards,
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Let me clear you. Actually there are two types of creating the stored procedure struture. One with Table node and other without it.
Structure -1
<StatementName5>
<storedProcedureName action= EXECUTE>
<param1 [isInput=true] [isOutput=true] type=SQLDatatype>val1</param1>
</storedProcedureName >
</StatementName5>
In the above case <storedProcedureName action= EXECUTE> what ever name u give in the StoredProcedureName will consider as real store procedure name. In the blog u can see the sp_GetROle which is the stored procedure name. It doesn't have table node. The above struture has one disadvantage u can't give scehma.spname right?
To over come the above disdvantage we can create another structure with Table node in it.
Structure -2
<StatementName5>
<storedProcedureName action= EXECUTE>
<table>realStoredProcedureeName</table>
<param1 [isInput=true] [isOutput=true] type=SQLDatatype>val1</param1>
</storedProcedureName >
</StatementName5>
If you have table node in the strutucre , then what ever value u give in the table node tag will consider as real stored procedure name. Here u can map constant as u like, schema.spname
<Table> node must be child of <storedProcedureName action= EXECUTE>, action is the attribute of <storedProcedureName> , hope it helps!!!
If it doesn't , reply back.
Best regards,
raj.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.