Jump to content

Jasper Server / Studio Execute stored procedure with arguments


elementsti

Recommended Posts

Hi,

how can I call a stored procedure on a sybase ase db with arguments. 

I'm able to execute a query with a stored procedure but with no arguments:

<queryString language="plsql">  <![CDATA[execute dbo.spumb_topXdestinations]]> </queryString>[/code]

But if I add an argument with a default value to the procedure it always takes the default value and without a default value jasper returns an sql execution error.

I tried it like this:

 <queryString language="plsql">  <![CDATA[execute dbo.spumb_topXdestinations 5]]> </queryString>[/code]

Header stored procedure:

CREATE PROCEDURE dbo.spumb_topXdestinations @branchid int AS BEGIN ...[/code]

 

Regards

Marco

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...