SQLite Connect C # Notes

Source: Internet
Author: User
Tags sqlite string format

Have to spit groove, it is too pit. The following points must be noted:

  1. To download two things, you have to have an officer net. One is SQLite for Windows, and one is System.Data.SQLite.
  2. Download the DLL inside there is a test, it must be tested with it to be done. The connection string format above is the correct format. Note the path is to be used in this format.
    <?XML version= "1.0"?><Configuration><Startup><supportedruntimeversion= "v2.0.50727"/></Startup>  <appSettings>    <AddKey= "local"value= "Data source=d:/sqlite/football.db; Pooling=true; Failifmissing=false; password=123; "/>  </appSettings></Configuration>

  3. If the report assembly is wrong, then it is the generated thing. To adjust the build mode to x86 or x64 in the project properties. This depends on the machine condition, of course any CPU is better.
  4. If the program reported that file is encrypted or was not a database this error, then it is a little bit, your password is wrong. Yes, don't doubt it, it's a pit. Navicat set the wrong password, used in other programs, the password to enter the settings will not come out. Be sure to use a different tool or SQL statement to set the password.
  5. You can use the SQLite Developer This tool, very useful.
  6. The steps to create the database are as follows:cmd=> enter the Sqlite3.exe folder and enter the Sqlite3.exe xxx.db=> input. Databases (note here that you do not see the database created when you do not enter it.) ) = = input. Quit. After creation, the database is created in the Sqlite3.exe directory.

SQLite Connect C # Notes

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.