Question

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 it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top