Sqlserver,sqlite,access Database link string Collation _c language

Source: Internet
Author: User
Tags sqlite access database

sqlserver:string connection = "server=32.1.1.48;database= database name; user=sa;password=sa2008";

Access 2007:

A connection string without a password string

constr = "Provider=microsoft.ace.oledb.12.0;data source=e://111.accdb;     Persist security Info=false ";

Connection string with password string

constr = "Provider=microsoft.ace.oledb.12.0;data source=e://111.accdb;" Jet oledb:database password=111 ";

Access 2003: 

A connection string without a password string

constr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=e://111.mdb;     Persist security Info=false ";

Connection string with password string

constr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=e://111.mdb;" Jet oledb:database password=111 ";

Link Access database If there is a failure to start the application workgroup information file is missing may be link string link incorrect

Sqlite:    

String constr = "Data source=e://111.db;" Password=111 ";

You need to add a reference when using SQLite system.data.sqlite,c# the mixed-mode assembly is prompted at run time for the "v2.0.50727" version of the runtime, and cannot load the assembly in the 4.0 runtime without additional information configured. This issue allows you to add a configuration section to the app.config: Startup

<startup uselegacyv2runtimeactivationpolicy= "true" >
<supportedruntime version= "v4.0"/>
</ Startup>
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.