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%3E%E4%BB%8E%20SQL%20Server%20%E4%B8%AD%E7%9A%84%E5%AD%98%E5%82%A8%E8%BF%87%E7%A8%8B%E5%AF%BC%E5%85%A5%E6%95%B0%E6%8D%AE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-637595%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%88%91%E4%B8%80%E7%9B%B4%E5%9C%A8%E5%B0%9D%E8%AF%95%E4%BB%8E%E5%AD%98%E5%82%A8%E8%BF%87%E7%A8%8B%E4%B8%AD%E5%AF%BC%E5%85%A5%E6%95%B0%E6%8D%AE%EF%BC%8C%E4%BD%86%E5%AE%83%E4%BB%80%E4%B9%88%E4%B9%9F%E6%B2%A1%E8%BF%94%E5%9B%9E%E3%80%82%E6%AF%8F%E5%BD%93%E6%88%91%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8%E2%80%9C%E6%89%93%E5%BC%80%E8%A1%A8%E2%80%9D%E7%AA%97%E5%8F%A3%E6%97%B6%EF%BC%8C%E5%AE%83%E9%83%BD%E4%BC%9A%E8%BF%94%E5%9B%9E%E6%AD%A4%E9%94%99%E8%AF%AF%E6%B6%88%E6%81%AF%E3%80%82%E6%88%91%E7%94%A8%E8%BF%87%20JMP%2015%20%E5%92%8C%20JMP%2017%E3%80%82%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%3E%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8%E8%84%9A%E6%9C%AC%E6%8B%89%E5%8F%96%E6%95%B0%E6%8D%AE%E6%97%B6%EF%BC%8C%E6%B2%A1%E6%9C%89%E8%BF%94%E5%9B%9E%E4%BB%BB%E4%BD%95%E5%86%85%E5%AE%B9%EF%BC%8C%E4%B9%9F%E6%B2%A1%E6%9C%89%E5%BC%B9%E5%87%BA%E9%94%99%E8%AF%AF%E6%B6%88%E6%81%AF%E3%80%82%E8%84%9A%E6%9C%AC%E5%A6%82%E4%B8%8B%EF%BC%9A%3C%2FP%3E%3CP%3E%E8%BF%9E%E6%8E%A5%E5%AD%97%E7%AC%A6%E4%B8%B2%20%3D%20%E5%88%9B%E5%BB%BA%E6%95%B0%E6%8D%AE%E5%BA%93%E8%BF%9E%E6%8E%A5(%3CBR%20%2F%3E%20%E2%80%9CDRIVER%3DSQL%20Server%EF%BC%9BServer%3DExample%20Server%EF%BC%9BTrusted_Connection%3DYes%EF%BC%9BAPP%3DJMP%EF%BC%9BDATABASE%3DExample%20DB%EF%BC%9B%E2%80%9D%EF%BC%89%EF%BC%9B%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%3E%E6%88%91%E6%83%B3%E6%88%91%E7%9A%84%E9%97%AE%E9%A2%98%E6%98%AF%E4%BB%8E%20SQL%20Server%20%E4%B8%AD%E7%9A%84%E5%AD%98%E5%82%A8%E8%BF%87%E7%A8%8B%E5%AF%BC%E5%85%A5%E6%95%B0%E6%8D%AE%E7%9A%84%E6%9C%80%E4%BD%B3%E6%96%B9%E5%BC%8F%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%8C%E7%89%B9%E5%88%AB%E6%98%AF%E8%BF%99%E7%A7%8D%E6%83%85%E5%86%B5%E4%B8%8B%E7%9A%84%E6%9C%80%E4%BD%B3%E9%80%94%E5%BE%84%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%E4%BD%A0%EF%BC%81%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%3E%E8%84%9A%E6%9C%AC%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