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%3EImporter%20des%20donn%C3%A9es%20%C3%A0%20partir%20d'une%20proc%C3%A9dure%20stock%C3%A9e%20dans%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%3EBonjour%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJ'ai%20essay%C3%A9%20d'importer%20des%20donn%C3%A9es%20%C3%A0%20partir%20d'une%20proc%C3%A9dure%20stock%C3%A9e%20mais%20cela%20ne%20renvoie%20rien.Chaque%20fois%20que%20j'essaie%20d'utiliser%20la%20fen%C3%AAtre%20%22Ouvrir%20la%20table%22%2C%20elle%20renvoie%20ce%20message%20d'erreur.J'ai%20utilis%C3%A9%20%C3%A0%20la%20fois%20JMP%2015%20et%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%3ELorsque%20vous%20essayez%20d'utiliser%20un%20script%20pour%20extraire%20les%20donn%C3%A9es%2C%20rien%20n'est%20renvoy%C3%A9%20et%20aucun%20message%20d'erreur%20ne%20s'affiche.Le%20script%20est%20ci-dessous%26nbsp%3B%3A%3C%2FP%3E%3CP%3ECha%C3%AEne%20de%20connexion%20%3D%20Cr%C3%A9er%20une%20connexion%20%C3%A0%20la%20base%20de%20donn%C3%A9es%20(%3CBR%20%2F%3E%20%22DRIVER%3DSQL%20Server%3BServer%3DExample%20Server%3BTrusted_Connection%3DYes%3BAPP%3DJMP%3BDATABASE%3DExample%20DB%3B%22)%3B%3C%2FP%3E%3CP%3E%3CEXECUTE%20sql%3D%22%22%3E%3C%2FEXECUTE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJe%20suppose%20que%20mes%20questions%20sont%20quelle%20est%20la%20meilleure%20fa%C3%A7on%20d'importer%20des%20donn%C3%A9es%20%C3%A0%20partir%20d'une%20proc%C3%A9dure%20stock%C3%A9e%20dans%20un%20serveur%20SQL%20et%20quelle%20est%20la%20meilleure%20route%20pour%20ce%20sc%C3%A9nario%20en%20particulier%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMerci!%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%3EScript%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