Skip to main content
Nintex Community Menu Bar

Connect to an Access DB

  • August 31, 2022
  • 0 replies
  • 88 views

MillaZ
Nintex Employee
Forum|alt.badge.img+23

Product: Kryon RPA Product Version: 19.x.x Components: Database
Article Contributors: Kryon CS


In order to connect to an Access DB (*.mdb or *.accdb), you need to define a System DSN either in your development machine & on each Robot machine, or in your server machine a define the query in the Admin tool.
Prerequisites: MS Access, SQL

 

Steps:
Connect to an Access DB
In order to connect to an Access DB (*.mdb or *.accdb), you need to define a System DSN either in your development machine on each Robot machine, or in your server machine a define the query in the Admin tool.

Step 1 - Define System DSN in ODBC
1. Open ODBC Data Source Administrator (Press the Win+R and type in odbcad32.exe):    

23826iF16A5497F13E7BF5.jpg


2. Go to "System DSN" tab & click "Add…"

 

23827i4EB5F4FDABE53430.jpg

 

3. Select "Microsoft Access Driver (*.mdb, *.accdb)" Version 15.0 & click "Finish"

 

23828iA0D48D7B0119E33B.jpg

 

4. Enter the name for the new DSN & click "Select" to choose an existing database:
 

23829i2B6C0A0239C476D0.jpg

 

5. After selecting the database, click "Advanced…" 

 

23830i6EADFB191242A50F.jpg

6. Provide a login name & click Enter:

 

23831i56409040F50A1C13.jpg

7. Click "OK" to close the form: 

23832iFCC232E17F102112.jpg

 

Step 2 - Configure connection string in Leo Execute SQL Query advanced command
1. Click on "Builder…":

 

23833i47D37CE5CC470AA1.jpg
 

2. Go to "Provider" tab & select "Microsoft OLE DB Provider for ODBC Drivers":


23834iFD717975DEA82B87.jpg
 

3. Go to "Connection" tab and do as follows:
 

23835iD01AAD8E9F48059A.jpg

  • Select you DSN from the data source list.
  • Example: "MyAccessDB"
  • Enter the user name you've configured to the DSN in the ODBC.
  • Example: "admin"
  • Check the "Blank password".
  •  Select the database file path in the initial catalog to use.

 

4. Test the connection:

23836i975D2AAF186989DE.jpg

 

23837iE302030F8048256E.jpg

 

5. Go to "Advanced" tab & provide a "Connect timeout" value & check the "ReadWrite" access permissions:


23838iF768E7FE7F0CBA09.jpg
 

6. Go to "All" tab, select the "Extended Properties" row & click on "Edit Value…":
 

23839iFF5AC3B7B5AE5AD1.jpg

 

7. Enter the value DSN=<DSN name>; and press Enter:
 

23840i2614044893F42361.jpg
 

8. Click OK to create the connection string.
 

 

 

Note: The resulting connection string should be as this example: Provider=MSDASQL.1;Persist Security Info=False;User ID=admin;Data Source=MyAccessDB;Mode=ReadWrite;Extended Properties="DSN=MyAccessDB;";Initial Catalog=C:Users<username>Documents empDatabase1.accdb