cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Jackie_
Level VI

Close Database connection

Hi,

 

Is there a way to close the database connection before running the script?

I have an SQL script that crashes JMP if there's an open connection, so I'm trying to figure out a way to close all the connections before running the script.

 

Jackie__0-1710268187474.png

Thanks,

2 REPLIES 2
txnelson
Super User

Re: Close Database connection

Here is a previous Community Discussion that provides an answer

How to Disconnect from a database via script 

Jim
jthi
Super User

Re: Close Database connection

If I remember correctly New SQL Query and Open Database will close the connection after query is done.

https://www.jmp.com/support/help/en/17.2/#page/jmp/sql-functions.shtml?os=win&source=application#ww5...

There is not a command to close an ODBC connection established with New SQL Query() because New SQL Query() always closes the connection after performing the query.

 

It might be also mentioned somewhere here but I'm not sure about that https://www.jmp.com/support/help/en/17.2/#page/jmp/build-sql-queries-in-query-builder.shtml#

-Jarmo