SQLImport sequence

What would be the correct sequence to use in order to do an SQLImport of a new database to replace the exisitng database a running app is using? Would I do a DB.close, do the SQLImport with NSB.overwriteAlways and then open the new database?

Thank you

That sounds like the safe way to do it.

Thank you.
Is there a simple way in javascript to end a native app? Is there a way to have it restart?

Apps don’t end. There are some post on this board about stopping an App.

Restart is easy:

 location.reload()

Thank you!