Use the Connect action to connect to a database server and create a session that other database actions can reuse. This action supports Microsoft Access, Microsoft SQL Server, MySQL, PostgreSQL Server, and SQLite databases, and CSV, Microsoft Excel, and TXT files used as databases.
About this task
- Microsoft 365 Apps for Enterprise
-
The Database package supports Microsoft 365 Apps for Enterprise; Office 2016, 2019, or 2021 (Consumer Version 2009 or later); and Microsoft Office 2024, including LTSC Professional Plus 2024. For Office 2024, use Database package version 5.5.2 or later. For details, see Packages certified for Microsoft Office.
If your current office installation is any one of the supported versions, then you need not install the Microsoft Access Database Engine as an additional component on your system.
If both Microsoft 365 Apps and the Microsoft Access Database Engine are installed on your system, you can uninstall the Microsoft Access Database Engine and repair Microsoft 365 Apps.
Specify the details of a database server and associate it with a session name. Use the session name provided in this action in the other actions so that you do not have to provide the details of the database server in those actions.
Procedure
What to do next
- Use the Read from action to retrieve records from the database.
- If you are automating a task that involves making changes to the database, insert
the Begin database transaction
action.
This action ensures that all records are updated or deleted in their entirety, and prevents accidental updates or deletions of incomplete data if the bot encounters an error during run time.