Microsoft Access accdb ODBC Driver connection strings

Connects to

Access 97

Problems connecting?
Get answer in the Access 97 Q & A forum

Access 2000

Access 2002

Access 2003

Access 2007

  • 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.

    Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\mydatabase.accdb;
    Uid
    =Admin;Pwd=;ExtendedAnsiSQL=1;
  • Specifying locale identifier

    Use this one to specify the locale identifier which can help with non-US formated dates.

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

    The above example uses the en-gb locale identifier (2057)

Access 2010

  • 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.

    Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\mydatabase.accdb;
    Uid
    =Admin;Pwd=;ExtendedAnsiSQL=1;
  • Specifying locale identifier

    Use this one to specify the locale identifier which can help with non-US formated dates.

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

    The above example uses the en-gb locale identifier (2057)

Access 2013

  • 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.

    Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\mydatabase.accdb;
    Uid
    =Admin;Pwd=;ExtendedAnsiSQL=1;
  • Specifying locale identifier

    Use this one to specify the locale identifier which can help with non-US formated dates.

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

    The above example uses the en-gb locale identifier (2057)

ODBC DriverDriver={Microsoft Access Driver (*.mdb, *.accdb}Info and driver downloads

Articlesread all »

Providers

Connect

Articlesread all »

Didn't find your connection string?

Start over from the connection string reference index - or try a search!

In the Q&A forums you can ask your own question and let somebody help you.

The knowledge articles contains solutions and guides.