As the title: is it possible to attach a (encrypted or non-encrypted) database to a database, encrypted with SQLCipher 1.5?
Whatever way I do this (tried lots) I get this error:
net.sqlcipher.database.SQLiteException: file is not a database: ATTACH DATABASE '/storage/3637-6230/Android/data/b4a.testing/files/SQL.db' AS 'DBA'
RBS
Whatever way I do this (tried lots) I get this error:
net.sqlcipher.database.SQLiteException: file is not a database: ATTACH DATABASE '/storage/3637-6230/Android/data/b4a.testing/files/SQL.db' AS 'DBA'
B4X:
strAttachResult = AttachDB(Starter.strAppDir & "/" & strDBNew , "DBA")
Sub AttachDB(strDBFolder As String, strDBName As String) As String
Dim strSQL As String
strSQL = "ATTACH DATABASE '" & strDBFolder & "' AS '" & strDBName & "'"
Try
cConnection.SQL1.ExecNonQuery(strSQL)
Catch
ShowError("Error in AttachDB", "")
Return "Error"
End Try
Return ""
End Sub
RBS