Database connection string Summary (increasing ~)

Source: Internet
Author: User

Connection access:
Provider = Microsoft. Jet. oledb.4.0; Data Source = c: \ begaspnet \ northwind. MDB
When a password is available:
Provider = Microsoft. Jet. oledb.4.0; Data Source = c: \ trade. mdb; Jet oledb: Database Password = A; (or, directly use password ?)

Connect to SQL Server:
User ID = sa; Password =; initial catalog = northwind; server = yoursqlserver; Connect timeout = 30
(1) User ID has an alias "uid" which can be written as "uid = sa", and "password" alias "PWD" can be written as "Pwd = ".
(2) note that your SQL server must have been configured with a user name and password to log on. Otherwise, you cannot log on using this method. if your SQL Server is set to Windows logon, you do not need to use the "user ID" and "password" methods to log on here, you need to use "trusted_connection = sspi" to log on.
(3) "Initial catalog = northwind": the data source used is "northwind". Its alias is "Database". This statement can be written as "database = northwind ".
(4) "Server = yoursqlserver": Use a server named "yoursqlserver. its alias is "Data Source", "Address", "ADDR ". if the local database is used and the Instance name is defined, you can enter "Server = (local) \ Instance name". If it is a remote server) "Replace with the name or IP address of the remote server.

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.