cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-286178%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EEseguire%20la%20stored%20procedure%20in%20SQL%20con%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-286178%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECiao%2C%3C%2FP%3E%0A%3CP%3ESto%20cercando%20di%20eseguire%20una%20procedura%20di%20negozio%20e%20ottengo%20un%20errore%20%22Errore%20sconosciuto%22.%3C%2FP%3E%0A%3CP%3EIl%20comando%20che%20uso%20%C3%A8%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EExecute%20SQL(%20MyConnection%2C%20%22Exec%20spMyProcedure%22%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ELa%20procedura%20non%20restituisce%20la%20tabella%2C%20aggiorna%20semplicemente%20alcune%20tabelle%20in%20SQL%20con%20i%20dati%20di%20un%20altro%20server.%3C%2FP%3E%0A%3CP%3EDurante%20l'esecuzione%20della%20procedura%20in%20SQL%20-%20nessun%20problema.%3C%2FP%3E%0A%3CP%3EQualche%20idea%3F%20Qual%20%C3%A8%20il%20modo%20migliore%20per%20eseguire%20stored%20procedure%20che%20dovrebbero%20essere%20eseguite%20per%20diversi%20minuti%20e%20non%20restituire%20alcuna%20tabella%3F%3C%2FP%3E%0A%3CP%3EGrazie.%3C%2FP%3E%0A%3CP%3ETom.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22jfk-bubble%20gtx-bubble%22%3E%0A%3CDIV%20class%3D%22jfk-bubble-content-id%22%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%20class%3D%22jfk-bubble-closebtn-id%20jfk-bubble-closebtn%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22jfk-bubble-arrow-id%20jfk-bubble-arrow%20jfk-bubble-arrowdown%22%3E%0A%3CDIV%20class%3D%22jfk-bubble-arrowimplbefore%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22jfk-bubble-arrowimplafter%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-286178%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EScripting%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-286210%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EOggetto%3A%20eseguire%20la%20stored%20procedure%20in%20SQL%20con%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-286210%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESe%20stai%20usando%20Oracle%2C%20ecco%20come%20faccio%20a%20far%20funzionare%20le%20procedure%20PL%2FSQL%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EExecute%20SQL(%20MyConnection%2C%20%22begin%20spMyProcedure%3B%20end%3B%22%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
tom_abramov
Level V

Run Stored procedure in SQL with JSL

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?

Recommended Articles