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-635705%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Utilisation%20de%20la%20cr%C3%A9ation%20d'une%20connexion%20%C3%A0%20une%20base%20de%20donn%C3%A9es%20pour%20une%20base%20de%20donn%C3%A9es%20ODBC%20dans%20JMP%26nbsp%3B17%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-635705%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EQuelques%20possibilit%C3%A9s%20%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EVous%20n'avez%20pas%20le%20bon%20pilote%20ODBC%20sur%20le%20nouvel%20ordinateur.Assurez-vous%20de%20%22faire%20correspondre%20la%20trappe%22.Par%20exemple%2C%20si%20vous%20avez%20JMP%2032%20bits%2C%20utilisez%20un%20pilote%2032%20bits.De%20m%C3%AAme%2C%20si%20vous%20avez%20JMP%2064%20bits%2C%20vous%20aurez%20besoin%20du%20pilote%2064%20bits.%3C%2FLI%3E%0A%3CLI%3EV%C3%A9rifiez%20la%20valeur%20de%3CSTRONG%3E%20Connecticut%3C%2FSTRONG%3E%20apr%C3%A8s%20l'appel%20%C3%A0%3CSTRONG%3E%20Cr%C3%A9er%20une%20connexion%20%C3%A0%20la%20base%20de%20donn%C3%A9es%3C%2FSTRONG%3E%20.%3C%2FLI%3E%0A%3CLI%3ECr%C3%A9ez%20une%20connexion%20manuellement%20avec%20Fichier%20%26gt%3B%20Base%20de%20donn%C3%A9es%20%26gt%3B%20Ouvrir%20la%20table%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EJe%20suppose%20que%20%22cha%C3%AEne%20de%20requ%C3%AAte%22%20n'est%20pas%20votre%20requ%C3%AAte%20r%C3%A9elle.%3C%2FP%3E%0A%3CP%3ESi%20cela%20ne%20vous%20aide%20pas%2C%20essayez%20le%20support%20technique.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-636073%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Utilisation%20de%20la%20cr%C3%A9ation%20d'une%20connexion%20%C3%A0%20une%20base%20de%20donn%C3%A9es%20pour%20une%20base%20de%20donn%C3%A9es%20ODBC%20dans%20JMP%26nbsp%3B17%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-636073%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cdbc.jpg%22%20style%3D%22width%3A%20780px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F53163iC5ACEAD520DF4C2D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22cdbc.jpg%22%20alt%3D%22cdbc.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EComme%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F4550%22%20target%3D%22_blank%22%3E%20%40pmroz%3C%2FA%3E%20souligne%2C%20je%20pense%20que%20le%20probl%C3%A8me%20pourrait%20%C3%AAtre%20dans%20votre%20d%C3%A9finition%20de%20'conn'.Selon%20l'index%20de%20script%2C%20la%20connexion%20%C3%A0%20la%20base%20de%20donn%C3%A9es%20de%20cr%C3%A9ation%20utilise%20une%20syntaxe%20diff%C3%A9rente%20de%20celle%20que%20vous%20avez%20montr%C3%A9e.Au%20lieu%20de%20%22ODBC%3ADescription%3D%22%2C%20il%20semble%20que%20ce%20devrait%20%C3%AAtre%20%22DSN%3D%22.Voir%20la%20photo%20que%20j'ai%20jointe%20ici.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJ'ai%20rencontr%C3%A9%20un%20probl%C3%A8me%20similaire%20lorsque%20j'ai%20commenc%C3%A9%20%C3%A0%20utiliser%20la%20fonction%20Cr%C3%A9er%20une%20connexion%20%C3%A0%20la%20base%20de%20donn%C3%A9es%20car%20j'incluais%20%C3%A9galement%20la%20syntaxe%20%22ODBC%3ADescription%3D%22%20qui%20ne%20semblait%20pas%20fonctionner.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-635672%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EUtilisation%20de%20Cr%C3%A9er%20une%20connexion%20%C3%A0%20une%20base%20de%20donn%C3%A9es%20pour%20une%20base%20de%20donn%C3%A9es%20ODBC%20dans%20JMP%2017%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-635672%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%20un%20script%20JSL%20qui%20utilise%20la%20fonction%20%22Create%20Database%20Connection%22%20pour%20se%20connecter%20%C3%A0%20une%20base%20de%20donn%C3%A9es%20ODBC%20et%20ex%C3%A9cute%20une%20requ%C3%AAte%20SQL%20(voir%20ci-dessous).%20Ce%20script%20fonctionnait%20sur%20JMP%2016%2C%20mais%20j'ai%20re%C3%A7u%20un%20nouvel%20ordinateur%20et%20mis%20%C3%A0%20niveau%20vers%20JMP%2017%20et%20maintenant%20je%20re%C3%A7ois%20l'erreur%20jointe%20(%22Send%20Expects%20Scriptable%20Object%20in%20access%20or%20evaluation%20of%20'Send'%2C%20dt1%20%26lt%3B%26lt%3B%20Show%20WIndow(0)%20%22).J'ai%20effectu%C3%A9%20un%20d%C3%A9bogage%20et%20il%20semble%20que%20le%20SQL%20d'ex%C3%A9cution%20ne%20produise%20aucune%20donn%C3%A9e%2C%20donc%20la%20fonction%20Afficher%20la%20fen%C3%AAtre%20essaie%20de%20masquer%20une%20table%20qui%20n'existe%20pas.%20J'ai%20v%C3%A9rifi%C3%A9%20directement%20dans%20la%20base%20de%20donn%C3%A9es%20que%20la%20requ%C3%AAte%20g%C3%A9n%C3%A8re%20des%20donn%C3%A9es.%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edatabase%20%3D%20%22DB%22%3B%0Aserver%20%3D%20%22server%22%3B%0Auser%20%3D%20%22user%22%3B%0Apass%20%3D%20%22pass%22%3B%0A%0Aconn%20%3D%20Create%20Database%20Connection%20(%22ODBC%3ADescription%3D%22%20%7C%7C%20database%20%7C%7C%20%22%3BDRIVER%3DSQL%20Server%20Native%20Client%2011.0%3BSERVER%3D%22%20%7C%7C%20server%20%7C%7C%20%22%3BUID%3D%22%20%7C%7C%20user%20%7C%7C%20%22%3BPWD%3D%22%20%7C%7C%20pass%20%7C%7C%20%22%3BAPP%3DJMP%3BDatabase%3D%22%20%7C%7C%20database%20%7C%7C%20%22%3B%22)%3B%0Astrg%20%3D%20%22query%20string%22%3B%0Adt1%20%3D%20Execute%20SQL(conn%2Cstrg%2C%22Table%20Title%22)%3B%0Adt1%20%26lt%3B%26lt%3B%20Show%20Window(0)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EMerci%20pour%20votre%20aide!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-635672%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAutomatisation%20et%20script%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAcc%C3%A8s%20aux%20donn%C3%A9es%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-643197%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Utilisation%20de%20la%20cr%C3%A9ation%20d'une%20connexion%20%C3%A0%20une%20base%20de%20donn%C3%A9es%20pour%20une%20base%20de%20donn%C3%A9es%20ODBC%20dans%20JMP%26nbsp%3B17%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-643197%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ERetirer%3C%2FP%3E%0A%3CPRE%20class%3D%22language-jsl%22%3E%3CCODE%3EODBC%3A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%C3%80%20partir%20de%20votre%20cha%C3%AEne%20de%20connexion.%3C%2FP%3E%0A%3CP%3EIl%20semble%20que%20vous%20ayez%20copi%C3%A9%20une%20cha%C3%AEne%20de%20connexion%20du%20QueryBuilder%20vers%3C%2FP%3E%0A%3CPRE%20class%3D%22language-jsl%22%3E%3CCODE%3ECreate%20Database%20Connection%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EODBC%26nbsp%3B%3A%20est%20une%20directive%20dans%20une%20cha%C3%AEne%20de%20connexion%20QueryBuilder%20qui%20lui%20indique%20d'utiliser%2C%20dans%20ce%20cas%2C%20ODBC.%3C%2FP%3E%0A%3CP%3EPour%20%C3%AAtre%20complet%2C%20QueryBuilder%20peut%20avoir%3C%2FP%3E%0A%3CP%3EJMP%20%3A%3C%2FP%3E%0A%3CP%3ESAS%26nbsp%3B%3A%3C%2FP%3E%0A%3CP%3EODBC%20%3A%3C%2FP%3E%0A%3CP%3Epr%C3%A9fixes%20dans%20un%20script%20de%20g%C3%A9n%C3%A9rateur%20de%20requ%C3%AAtes%20qui%20sp%C3%A9cifient%20le%20type%20de%20cha%C3%AEne%20de%20connexion%20repr%C3%A9sent%C3%A9.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Austin
Level I

Using Create Database Connection for a ODBC Database in JMP 17

Hello,

 

I have a JSL script that uses the "Create Database Connection" function to connect to an ODBC database and executes an SQL query (see below). This script was working on JMP 16, however I received a new computer and upgraded to JMP 17 and now I am receiving the attached error ("Send Expects Scriptable Object in access or evaluation of 'Send', dt1 << Show WIndow(0)"). I've performed some debugging and it looks like the Execute SQL isn't producing any data, so the Show Window function is trying to hide a table that doesn't exist. I've verified directly in the database that the query does generate data.

database = "DB";
server = "server";
user = "user";
pass = "pass";

conn = Create Database Connection ("ODBC:Description=" || database || ";DRIVER=SQL Server Native Client 11.0;SERVER=" || server || ";UID=" || user || ";PWD=" || pass || ";APP=JMP;Database=" || database || ";");
strg = "query string";
dt1 = Execute SQL(conn,strg,"Table Title");
dt1 << Show Window(0);

Thanks for your help!

3 REPLIES 3
pmroz
Super User

Re: Using Create Database Connection for a ODBC Database in JMP 17

Some possibilities:

  • You don't have the correct ODBC driver on the new computer.  Make sure to "match the hatch".  I.e. if you have 32-bit JMP use a 32-bit driver.  Similarly if you have 64-bit JMP you'll need the 64-bit driver.
  • Check the value of conn after the call to Create Database Connection.
  • Create a connection manually with File > Database > Open Table

I assume "query string" isn't your actual query.

If that doesn't help try tech support.

tbidwell
Level III

Re: Using Create Database Connection for a ODBC Database in JMP 17

cdbc.jpg

As @pmroz points out, I think the problem might be in your definition of 'conn'.  According to the Scripting Index, the Create Database Connection uses a different syntax that what you've shown.  Instead of "ODBC:Description=", it looks like it should be "DSN=".  See the picture I've attached here. 

 

I ran into a similar problem when I started using the Create Database Connection function because I was also including the "ODBC:Description=" syntax which didn't seem to work.

 

Re: Using Create Database Connection for a ODBC Database in JMP 17

Remove 

ODBC:

From your connection string.

It looks like you copied a connection string from the QueryBuilder to  

Create Database Connection

ODBC: is a directive in a QueryBuilder connection string that tells it to use, in this case, ODBC. 

For completeness, QueryBuilder can have

JMP:

SAS:

ODBC:

prefixes in a Query Builder script that specify the type of connection string that is represented.

Recommended Articles