Both work at the tools>sql command line until a shutdown [compact] command is issued
in no more than , which of the following are affected ie optimized by the commands 1 through 6
1. updated table data and or definitions (a [y|n], b [y|n] , c [y|n] , d [y|n] , e [y|n]
2. updated queries (sql statements) (a [y|n], b [y|n] , c [y|n] , d [y|n] , e [y|n]
3. updated embedded database graphics IMAGE LVB BLOB CLOB ditto
4. updated form graphics, backgrounds etc ditto
5. updating file relationships if any are set ditto
6. updating linked database graphics ditto
are affected / optimized by each of these 5 SQL and Base commands (a to e)
a. checkpoint defrag
b. shutdown compact
c. file>save
d. file>close
e. connection close
Once a shutdown command has been issued what is necessary to restart safely other than closing and reopening Base?
If I choose to <Record> these to a readymade <button> on a database form without going thro' the the tools > sql thing every time
afaik I will first need to perform the make new connection lines as follows ?
and end with connection.close
Because executing <as a macro> does not offer a Success/Failure dialog.
perhaps as an extra someone could suggest how to create such a Messagebox
Code: Select all
sub checkpoint
dbName = "NDBEMB" ' registered datasource...
oDatabaseContext = createUnoService( "com.sun.star.sdb.DatabaseContext")
oDBSource = oDatabaseContext.GetByName(dbName)
oConnection = oDBSource.GetConnection("", "")
oStatement = oConnection.executeStatement(mystatement) this is wrong can u correct it for me
mystatement = checkpoint defrag
oconnection.close()
msgbox "success" this needs a tweak and an iif()
end sub
Code: Select all
similar for shutdown [compact]