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%3EImportar%20datos%20del%20procedimiento%20almacenado%20en%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%3EHola%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHe%20estado%20tratando%20de%20importar%20datos%20de%20un%20procedimiento%20almacenado%20pero%20no%20devuelve%20nada.Cada%20vez%20que%20trato%20de%20usar%20la%20ventana%20%22Abrir%20tabla%22%2C%20devuelve%20este%20mensaje%20de%20error.He%20usado%20tanto%20JMP%2015%20como%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%3EAl%20intentar%20utilizar%20un%20script%20para%20extraer%20los%20datos%2C%20no%20se%20devuelve%20nada%20y%20no%20aparece%20ning%C3%BAn%20mensaje%20de%20error.El%20gui%C3%B3n%20est%C3%A1%20abajo%3A%3C%2FP%3E%3CP%3ECadena%20de%20conexi%C3%B3n%20%3D%20Crear%20conexi%C3%B3n%20de%20base%20de%20datos%20(%3CBR%20%2F%3E%20%22CONTROLADOR%3DSQL%20Server%3BServidor%3DServidor%20de%20ejemplo%3BConexi%C3%B3n_de_confianza%3DS%C3%AD%3BAPP%3DJMP%3BBASE%20DE%20DATOS%3DBase%20de%20datos%20de%20ejemplo%3B%22)%3B%3C%2FP%3E%3CP%3E%3CEJECUTAR%20sql%3D%22%22%3E%3C%2FEJECUTAR%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESupongo%20que%20mis%20preguntas%20son%20cu%C3%A1l%20es%20la%20mejor%20manera%20de%20importar%20datos%20de%20un%20procedimiento%20almacenado%20en%20un%20servidor%20SQL%20y%20cu%C3%A1l%20es%20la%20mejor%20ruta%20para%20este%20escenario%20en%20particular.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%C2%A1Gracias!%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%3Esecuencias%20de%20comandos%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