- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Close Database connection
Here is a previous Community Discussion that provides an answer
How to Disconnect from a database via script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Close Database connection
If I remember correctly New SQL Query and Open Database will close the connection after query is done.
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#