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.