Vra

I have placed the SQL CE Database file in the installation folder of the Windows phone application.i want to perform Read and Write operations on the database but it was saying Access to the database file is not allowed. Please suggest me how can i achieve this

Was dit nuttig?

Oplossing

You need to copy the database to isolated storage on first run, as the installation folder is read-only. You will also need to change the connection string:

data source=isostore://mydb.sdf

See much more in my blog post here: http://erikej.blogspot.dk/2013/04/generate-windows-phone-8-local-database.html

Gelisensieer onder: CC-BY-SA met toeskrywing
Nie verbonde aan StackOverflow
scroll top