When WP7 is used to operate SQLite, the database cannot be opened.

Source: Internet
Author: User

When WP7 SQLite was recently developed, an error was reported when it was opened. The database was created first and then copied to the WP7 isolated store.

 

Iconnection = new sqliteconnection ("version = 3, uri = file:" + idbname );

After version = 3 and uri = file: is removed, no error is reported for open.

 

However, an error is reported when an insert statement is executed.

 

After finding the table for a long time, I failed to find it. Then I tried to create a table using the statement and insert it. No error is reported.

I looked at the files in the isolated store. There are two files, one of which is SQLite-Journal.

 

Try to test this file, add it to the project, copy it to the isolated store, and continue to insert data. No error is reported.

 

I don't know, but it's okay now.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.