This is my code to open the database
<code>
If File.Exists(File.DirDefaultExternal, "lototouch.db") = False Then
Log("Copiando la base de datos")
File.Copy(File.DirAssets, "lototouch.db", File.DirInternal, "lototouch.db")
Else
Log("La bas e de datos existe..")
End If
'
If File.Exists(File.DirInternal, "lototouch.db") = True Then
Log("La base de datos existe////..")
Else
Log("La base de datos NO existe..")
End If
Log("Dir Assets:" & File.DirAssets)
Log("Dir External:" & File.DirInternal)
Log("Dir External:" & File.DirDefaultExternal)
'
SQL.Initialize(File.DirDefaultExternal,"lototouch.db", True)
'
Dim av As String
av = SQL.ExecQuerySingleResult("Select count(*) from sqlite_master where Type = 'table' and name='t_ganadores';")
Log("AV::::" & av)
'
SQL.ExecNonQuery("DELETE FROM t_ganadores")
'
SQL.ExecNonQuery("DELETE FROM t_jugadas")
</code>