Overview
This article provides you with examples of the connection strings used to connect to some common Access database data providers. It is worthy to note that each connection is different, therefore it is usually up to the server administrator to create and deploy the correct connection string for each application, user account, and type.
ODBC Provider
![]() |
|
---|---|
"Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\myDataBaseFile.mdb;Uid=Admin;Pwd=;" |
![]() |
|
---|---|
"Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\myDataBaseFile.mdb;SystemDB=C:\myDataBaseFile.mdw;" |
![]() |
|
---|---|
"Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\myDataBaseFile.mdb;Exclusive=1;Uid=admin;Pwd=" |
OLE DB, OleDbConnection (.NET 2.0)
![]() |
|
---|---|
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\myDataBasePath\myDataBaseFile.mdb;User Id=admin; Password=;" |
![]() |
|
---|---|
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\myDataBasePath\myDataBaseFile.mdb;Jet OLEDB: System Database=system.mdw;" |
![]() |
|
---|---|
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\myDataBasePath\myDataBaseFile.mdb;Jet OLEDB: Database Password=MyDbPassword;" |