SQL File into the device

Ennesima77

Member
Licensed User
Longtime User
Hi everybody,
this can be the stupid request in the forum, but I'm a biginner

How can I move a DB file into the emulator or device?

I build my SQLLite DB with SQLLite Manager on Firefox, but now I don't know how to copy it into the emulator.

it's also possible include it in the installazion pack during the debug (just to take it update in case of table modify)
Thanks for your reply.
 

mc73

Well-Known Member
Licensed User
Longtime User
You should add your database to the files' tab of your project (at the right side of the IDE).
 
Upvote 0

Ennesima77

Member
Licensed User
Longtime User
I supposed it was a stupid question, but I have another one:
Where the file were stored?
I try to connect using File.DirDefaultExternal, File.DirInternal, etc. but i got always an error
 
Upvote 0

Ennesima77

Member
Licensed User
Longtime User
You should then use DBUtils.CopyDBFromAssetsFolder to copy the database to a writable folder.

Thanks Erel I solved It.
 
Upvote 0
Top