cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-637595%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EImporta%20dati%20da%20stored%20procedure%20in%20SQL%20Server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-637595%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECiao%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHo%20cercato%20di%20importare%20i%20dati%20da%20una%20procedura%20memorizzata%20ma%20non%20restituisce%20nulla.Ogni%20volta%20che%20provo%20a%20utilizzare%20la%20finestra%20%22Apri%20tabella%22%2C%20restituisce%20questo%20messaggio%20di%20errore.Ho%20usato%20sia%20JMP%2015%20che%20JMP%2017.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mende001_0-1685570710539.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mende001_0-1685570710539.png%22%20style%3D%22width%3A%20225px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mende001_0-1685570710539.png%22%20style%3D%22width%3A%20225px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F53309iD3E01D17C3822BB9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mende001_0-1685570710539.png%22%20alt%3D%22mende001_0-1685570710539.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQuando%20si%20tenta%20di%20utilizzare%20uno%20script%20per%20estrarre%20i%20dati%2C%20non%20viene%20restituito%20nulla%20e%20non%20viene%20visualizzato%20alcun%20messaggio%20di%20errore.Lo%20script%20%C3%A8%20qui%20sotto%3A%3C%2FP%3E%3CP%3EStringa%20di%20connessione%20%3D%20Crea%20connessione%20al%20database(%3CBR%20%2F%3E%20%22DRIVER%3DSQL%20Server%3BServer%3DServer%20di%20esempio%3BTrusted_Connection%3DS%C3%AC%3BAPP%3DJMP%3BDATABASE%3DDB%20di%20esempio%3B%22)%3B%3C%2FP%3E%3CP%3E%3CESEGUI%20sql%3D%22%22%3E%3C%2FESEGUI%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EImmagino%20che%20le%20mie%20domande%20siano%20qual%20%C3%A8%20il%20modo%20migliore%20per%20importare%20dati%20da%20una%20stored%20procedure%20in%20un%20SQL%20Server%20e%20qual%20%C3%A8%20il%20percorso%20migliore%20per%20questo%20scenario%20in%20particolare%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGrazie!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-637595%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EScripting%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Choose Language Hide Translation Bar
mende001
Level I

Import Data from Stored Procedure in SQL Server

Hello,

 

I have been trying to import data from a stored procedure but it returns nothing.  Anytime I try to use the "Open Table" window, it returns this error message.  I have used both JMP 15 and JMP 17.  

mende001_0-1685570710539.png

 

When attempting to use a script to pull the data, nothing is returned and no error message pops up.  Script is below:

Connection String = Create Database Connection(
"DRIVER=SQL Server;Server=Example Server;Trusted_Connection=Yes;APP=JMP;DATABASE=Example DB;");

<Execute SQL( Connection String, "EXECUTE StoredProcedure @ColumnName = 'example' ", "data table");>

 

I guess my questions are what is the best way to import data from a stored procedure in a SQL Server and what is the best route for this scenario in particular?

 

Thank you!

 

2 REPLIES 2
pmroz
Super User

Re: Import Data from Stored Procedure in SQL Server

You can't import data from a stored procedure in Oracle.  I expect the same to be true for SQL server but I defer to experts.

Perhaps could run your procedure to create a table, and then issue a SELECT * from that table with a separate execute SQL command?

If that doesn't work you could try JMP tech support.

Re: Import Data from Stored Procedure in SQL Server

Hello,

Maybe try to execute this : "EXEC storeprocedurename".

As described here: Execute a Stored Procedure - SQL Server | Microsoft Learn

 

Regards,

Guillaume

Guillaume