You are on page 1of 2

ACE OLEDB 12.

0
OLE DB Provider Provider=Microsoft.ACE.OLEDB.12.0 MANUFACTURER Microsoft
TYPE USAGE

Standard security
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccess2007file.accdb; Persist Security Info=False;

With database password
This is the connection string to use when you have an Access 2007 database protected with a password using the "Set Database Password" function in Access.

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccess2007file.accdb; Jet OLEDB:Database Password=MyDbPassword;
Some reports of problems with password longer than 14 characters. Also that some characters might cause trouble. If you are having problems, try change password to a short one with normal characters.

DataDirectory functionality
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\myAccess2007file.accdb; Persist Security Info=False;

Network Location
Provider=Microsoft.ACE.OLEDB.12.0; Data Source=\\serverName\shareName\folder\myAccess2007file.accdb;

Microsoft Access accdb ODBC Driver
ODBC Driver Driver={Microsoft Access Driver (*.mdb, *.accdb} MANUFACTURER Microsoft
TYPE USAGE

Standard Security
Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\mydatabase.accdb;Uid=Admin; Pwd=;

Workgroup
Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\mydatabase.accdb; SystemDB=C:\mydatabase.mdw;
No changes were made to the .mdw file format for Office Access 2007. The Office Access 2007 Workgroup Manager creates .mdw files that are identical to those that are created in Access 2000 through Access 2003. The .mdw files that are created in those earlier versions can be used by databases in Office Access 2007.

Exclusive
Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\mydatabase.accdb;Exclusive=1; Uid=admin;Pwd=;

Enable admin statements
To enable certain programatically admin functions such as CREATE USER, CREATE GROUP, ADD USER, GRANT, REVOKE and DEFAULTS (when making CREATE TABLE statements) use this connection string.

OleDb. The .accdb)}.NET Driver={any odbc driver's name}.NET Framework Data Provider for ODBC . .OdbcKey1=someValue.NET Framework Wrapper Class Library System.ExtendedAnsiSQL=1.NET Provider=any oledb provider's name.Uid=Admin.net OleDbConnection will just pass on the connection string to the specified OLEDB provider.OledbKey2=someValue. See the respective ODBC driver's connection strings options.Odbc.Data. *.Pwd=. The above example uses the en-gb locale identifier (2057) .OledbKey1=someValue.Data. Specifying locale identifier Use this one to specify the locale identifier which can help with non-US formated dates. Pwd=.NET Framework Data Provider for OLE DB . Locale Identifier=2057.mdb. Driver={Microsoft Access Driver (*.accdb.net OdbcConnection will just pass on the connection string to the specified ODBC driver.NET Framework Wrapper Class Library System.Uid=Admin. *. The .mdb.accdb)}.OdbcKey2=someValue.accdb.Dbq=C:\mydatabase.Dbq=C:\mydatabase.OdbcConnection MANUFACTURER Microsoft TYPE USAGE Use an ODBC driver from . .OleDbConnection MANUFACTURER Microsoft TYPE USAGE Use an OLE DB provider from . See the respective OLEDB provider's connection strings options.Driver={Microsoft Access Driver (*.