|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ESQL invoke a stored procedure in SQLServer |
« View previous topic :: View next topic » |
Author |
Message
|
Fede_patane |
Posted: Tue Jan 30, 2007 7:04 am Post subject: ESQL invoke a stored procedure in SQLServer |
|
|
Novice
Joined: 05 Oct 2006 Posts: 15 Location: Buenos Aires, Argentina
|
Dear Gurus,
I am trying to invoke a stored procedure in a SQL server using an ODBC source.
I am using WMB 6.0.0.1 over AIX 5.3.
The DB is SQLServer 2000 running on windows 2003 server.
The name of the ODBC source is CDP and to do this i have writen the following code into a compute node:
CREATE PROCEDURE mySP(
IN p1 INTEGER,
IN p2 INTEGER,
IN p3 CHAR,
In p4 INTEGER,
IN p5 INTEGER, IN p6 CHAR)
--LANGUAGE DATABASE
DYNAMIC RESULT SETS 1
EXTERNAL NAME "stp_EAI_Retrieve_VentasPOS";
CREATE COMPUTE MODULE Test_HTTP_Compute1
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
set OutputRoot.Properties.MessageFormat = 'XML';
call mySP(8194872, 1, 'E103', 0 , 0 , '' , OutputRoot.XML.Test[]) ;
RETURN TRUE;
END;
When i execute this i get the following error:
Fault detail: BIP2230E: Error detected whilst processing a message in node 'Test_HTTP.Compute1'. : /build/S600_P/src/DataFlowEngine/ImbComputeNode.cpp: 464: ImbComputeNode::evaluate: ComIbmComputeNode: Test_HTTP#FCMComposite_1_5 BIP2488E: ('.Test_HTTP_Compute1.Main', '9.3') Error detected whilst executing the SQL statement ''mySP(8194872, 1, 'E103', 0, 0, '', OutputRoot.XML.Test[ ]);''. : /build/S600_P/src/DataFlowEngine/ImbRdl/ImbRdlStatementGroup.cpp: 589: SqlStatementGroup::execute: ComIbmComputeNode: Test_HTTP#FCMComposite_1_5 BIP2934E: Error detected whilst executing the function or procedure ''mySP''. : /build/S600_P/src/DataFlowEngine/ImbRdl/ImbRdlRoutine.cpp: 685: SqlRoutine::invoke: ComIbmComputeNode: Test_HTTP#FCMComposite_1_5 BIP2920E: Whilst attempting to obtain a procedure definition, the database reported that the procedure ''CDP.eai.stp_EAI_Retrieve_VentasPOS'' does not exist, or cannot be accesed. : /build/S600_P/src/DataFlowEngine/ImbDatabaseManager.cpp: 1960: ImbDatabaseManager::getDBProcedureParameterInformation: ComIbmDatabaseConnectionManager: ComIbmDatabaseConnectionManager
Please note that the part in bold should point the problem. What i suspect is that for some reason it is doing something wrong. The name of the user to conect to the DB is "eai" and i don't know why it is added automatically there.
any help would be apreciated.
Thanx
Federico _________________ You ask why are we slaves, but I ask why are you not? What hideous force in the universe could set you free and forever taken away your peace of mind. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jan 30, 2007 7:54 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It is qualifying your stored procedure name with the Schema of your user - eai.
If that is not the Schema name of the stored procedure, you can either specify it manually in your code, change the schema of the procedure, or change the user with mqsisetdbparms or on the DSN. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Fede_patane |
Posted: Tue Jan 30, 2007 9:18 am Post subject: |
|
|
Novice
Joined: 05 Oct 2006 Posts: 15 Location: Buenos Aires, Argentina
|
mmm, i get your point, but the thing is that i am using SQL Server and there is no such thing as schema in SQLServer. There are databases and users, and both are correct.
hence i believe the problem can be related to this. I am still trying diferent posibilities changing the definition of the SP in ESQL and the actual CALL sentence but with no success.
any other ideas? _________________ You ask why are we slaves, but I ask why are you not? What hideous force in the universe could set you free and forever taken away your peace of mind. |
|
Back to top |
|
 |
rpmasc |
Posted: Tue Mar 20, 2007 4:13 pm Post subject: |
|
|
Newbie
Joined: 30 May 2006 Posts: 3 Location: Brasil
|
Fede_patane wrote: |
mmm, i get your point, but the thing is that i am using SQL Server and there is no such thing as schema in SQLServer. There are databases and users, and both are correct.
hence i believe the problem can be related to this. I am still trying diferent posibilities changing the definition of the SP in ESQL and the actual CALL sentence but with no success.
any other ideas? |
Hi, did you solve this issue ? Could you post how you did that ?
Thank you.
Roberto |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|