Hello,
I have a JSL script that calls for different SQL queries. After the data table is complete, I want to close the queries. Is this possible?
query = Close( "C:\\example.jmpquery" )
does not work.
Thanks.
q1 = Open("C:\myQuery.jmpquery");q1 << Run Foreground;q1 << Close Window();
See
Close Database Connection
in the Scripting Index.
I believe that
Close Database Connection( query );
should work
Thanks!
What I want to know if it is possible to close the queries themselves, not necessarily the connection to the database. At the end of the running the script I'm left with 10 open queries which I don't need. Any idea how to close the individual queries?
I assume that you mean by 'query' the resulting JMP data tables. If so, then this example should help you.
// an open query query = Open Database( ... ); // close query Close( query, No Save );
Thanks very much for your reply.
I meant the query itself, not the data table. the query that is opened with Select File > New > Database Query.
Is there any way to close this query itself?
Thanks! this works!