cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use JMP Live to centralize and share reports within groups. Webinar with Q&A April 4, 2pm ET.
Choose Language Hide Translation Bar
View Original Published Thread

Run Stored procedure in SQL with JSL

tom_abramov
Level V

Hello,

I am trying to run a store procedure and get an error "Unknown error".

The command I use is 

Execute SQL( MyConnection, "Exec spMyProcedure" );

The procedure doesn't return table, it just updates some table in SQL with data from another server.

While executing the procedure in SQL - no problems.

Any ideas? What is the best way to run stored procedures that are supposed to run several minutes and dont return any table?

Thank you.

Tom.

 

 
 
 
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
pmroz
Super User


Re: Run Stored procedure in SQL with JSL

If you're using Oracle this is how I get PL/SQL procedures to work:

Execute SQL( MyConnection, "begin spMyProcedure; end;" );

View solution in original post

2 REPLIES 2
pmroz
Super User


Re: Run Stored procedure in SQL with JSL

If you're using Oracle this is how I get PL/SQL procedures to work:

Execute SQL( MyConnection, "begin spMyProcedure; end;" );
mende001
Level I


Re: Run Stored procedure in SQL with JSL

How do you use this function for a SQL Server?