ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Accessing Stored Procedure on SQL Server

Post new topic  Reply to topic
 Accessing Stored Procedure on SQL Server « View previous topic :: View next topic » 
Author Message
pratuluv
PostPosted: Mon Jul 16, 2012 10:22 pm    Post subject: Accessing Stored Procedure on SQL Server Reply with quote

Acolyte

Joined: 25 May 2011
Posts: 53

Hi I am trying to access a stored procedure residing on SQL Server. I have taken the sample code from our Help contents.

Here is the link to the same, Refer "Database routine example 4".
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac17040_.htm

While trying to call the stored procedure, I am getting the below error, Please help.

ExceptionList
RecoverableException
File:CHARACTER:F:\build\S700_P\src\DataFlowEngine\ImbDataFlowNode.cpp
Line:INTEGER:1073
Function:CHARACTER:ImbDataFlowNode::createExceptionList
Type:CHARACTER:ComIbmMQInputNode
Name:CHARACTER:sample#FCMComposite_1_1
Label:CHARACTER:sample.MQ Input
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Node throwing exception
RecoverableException
File:CHARACTER:F:\build\S700_P\src\DataFlowEngine\ImbComputeNode.cpp
Line:INTEGER:489
Function:CHARACTER:ImbComputeNode::evaluate
Type:CHARACTER:ComIbmComputeNode
Name:CHARACTER:sample#FCMComposite_1_3
Label:CHARACTER:sample.Compute
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Caught exception and rethrowing
RecoverableException
File:CHARACTER:F:\build\S700_P\src\DataFlowEngine\ImbRdl\ImbRdlStatementGroup.cpp
Line:INTEGER:641
Function:CHARACTER:SqlStatementGroup::execute
Type:CHARACTER:ComIbmComputeNode
Name:CHARACTER:sample#FCMComposite_1_3
Label:CHARACTER:sample.Compute
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2488
Text:CHARACTER:Error detected, rethrowing
Insert
Type:INTEGER:5
Text:CHARACTER:.sample_Compute.Main
Insert
Type:INTEGER:5
Text:CHARACTER:9.3
Insert
Type:INTEGER:5
Text:CHARACTER:SwapParms(inputParm, outputParm, inputOutputParm);
RecoverableException
File:CHARACTER:F:\build\S700_P\src\DataFlowEngine\ImbRdl\ImbRdlRoutine.cpp
Line:INTEGER:767
Function:CHARACTER:SqlRoutine::invoke
Type:CHARACTER:ComIbmComputeNode
Name:CHARACTER:sample#FCMComposite_1_3
Label:CHARACTER:sample.Compute
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2934
Text:CHARACTER:Error occured in procedure
Insert
Type:INTEGER:5
Text:CHARACTER:SwapParms
RecoverableException
File:CHARACTER:F:\build\S700_P\src\DataFlowEngine\ImbDatabaseManager.cpp
Line:INTEGER:2228
Function:CHARACTER:ImbDatabaseManager::getDBProcedureParameterInformation
Type:CHARACTER:ComIbmDatabaseConnectionManager
Name:CHARACTER:ComIbmDatabaseConnectionManager
Label:CHARACTER:ComIbmDatabaseConnectionManager
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2920
Text:CHARACTER:The procedure is unknown to the database and no definition could be found.
Insert
Type:INTEGER:5
Text:CHARACTER:DSN_SQL.[DWIPBANIN00382\SQLEXPRESS].[Test].[dbo].[dbSwapParms]
Back to top
View user's profile Send private message
sourdas2
PostPosted: Mon Jul 16, 2012 11:40 pm    Post subject: Reply with quote

Voyager

Joined: 21 Apr 2006
Posts: 90
Location: Kolkata,India

The error is -
Quote:
The procedure is unknown to the database and no definition could be found - DSN_SQL.[DWIPBANIN00382\SQLEXPRESS].[Test].[dbo].[dbSwapParms]


So, check if you are providing correct Data Source, Schema Name, Stored Proc Name.
_________________
Thanks and Warm Regards
Sourav
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
pratuluv
PostPosted: Mon Jul 16, 2012 11:44 pm    Post subject: Accessing Stored Procedure on SQL Server Reply with quote

Acolyte

Joined: 25 May 2011
Posts: 53

All the details are perfect. I have tried different combinations also like,

giving only the schemaname.storedprocname, etc. but it gives me the same error.
Back to top
View user's profile Send private message
kash3338
PostPosted: Tue Jul 17, 2012 3:41 am    Post subject: Re: Accessing Stored Procedure on SQL Server Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

pratuluv wrote:
All the details are perfect. I have tried different combinations also like,

giving only the schemaname.storedprocname, etc. but it gives me the same error.


Is the IN parameters to the DB of the same datatype? Did you try to run a select query to check if the connection is established using the current DSN details?
Back to top
View user's profile Send private message Send e-mail
pratuluv
PostPosted: Tue Jul 17, 2012 4:06 am    Post subject: Reply with quote

Acolyte

Joined: 25 May 2011
Posts: 53

Kash,

This is not a datatype issue. I have taken care of that. Also, I did execute a select query on this database and it retrieves the result. Hence the issue is only with accessing the stored procedure.

Also, fyi, in case of datatype mismatch, the error message will clearly mention the same.

Between, can anyone tell me if SQL Server 2008 R2 is compatible with WMB for stored procedure calls?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Jul 17, 2012 4:57 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

pratuluv wrote:


Between, can anyone tell me if SQL Server 2008 R2 is compatible with WMB for stored procedure calls?


Yes it is, within the limitation imposed bythe ODBC driver. For example, BIT Datatypes aren't supported (This is with V7.0.0.3 broker).
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
kash3338
PostPosted: Tue Jul 17, 2012 10:01 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Make sure this is taken care as well,

Quote:
The following restrictions apply to the use of stored procedures:

Overloaded procedures are not supported. (An overloaded procedure is one that has the same name as another procedure in the same database schema with a different number of parameters, or parameters with different types.) If the broker detects that a procedure has been overloaded, it raises an exception
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Accessing Stored Procedure on SQL Server
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.