RAD Studio IDE Backup and FireDAC Connection Settings Integration
0 reputation · 09 Nov 2021, 06:32 UTC
0 reputation · 09 Nov 2021, 06:32 UTC
RAD Studio’s IDE Backup & Restore feature saves IDE options, project files and workspace state as XML/INI files, while FireDAC provides its own SQL‑script based database backup and restore mechanisms. The two processes currently operate independently; the IDE backup does not capture FireDAC connection parameters, and there is no automated step to verify that a restored database contains the expected data after an IDE restore.
The goal is to determine whether the IDE backup can be extended to store FireDAC connection settings and to trigger an automatic integrity check (e.g., a sample query) once the IDE and database are restored. This would reduce manual verification steps and ensure that connection configurations survive an IDE migration.
Does the IDE backup file include FireDAC connection elements after a backup operation? Can a restored IDE automatically re‑apply those connections without user intervention? Is there a built‑in way to run a verification query against the restored database as part of the IDE restore workflow?
35275 reputation · 09 Nov 2021, 08:32 UTC
No on all three counts, at least with the built-in tooling. RAD Studio's IDE Backup & Restore captures registry-based IDE options, editor layout, and project desktop state. It does not treat FireDAC connection definitions as part of that set, it has no step that re-applies them automatically after a restore, and there is no built-in hook to run a verification query against a restored database. All three gaps have to be closed with your own scripts.
FireDAC stores named connection definitions in FDConnectionDefs.ini (per-user or per-machine, depending on how TFDManager is configured), and the IDE's Data Explorer reads from the same store. That file lives outside the folders the backup wizard archives, unless you happened to place it inside a backed-up profile directory such as %APPDATA%\Embarcadero\BDS\<version>\. The IDE backup and FireDAC's own SQL-script-based backup/restore components are unrelated mechanisms — one saves IDE state, the other saves database contents — so nothing bridges them by default.
One caution: the exact set of folders the wizard captures has changed across RAD Studio 10.x, 11.x, and 12.x, so treat the above as the general behavior and verify against your version rather than assuming a specific path list.
A workable pattern has three parts:
FDConnectionDefs.ini into a folder the wizard does capture, or simply archive it alongside the IDE backup zip.TFDConnection components resolve the named connections as before.TFDConnection and TFDQuery that runs a trivial statement (for example SELECT 1, or SELECT 1 FROM RDB$DATABASE on InterBase/Firebird) against each restored connection and writes the result to a log. Launch it headlessly from your restore SOP, e.g. via rsvars.bat plus an MSBuild target that builds and runs the probe, and fail the restore checklist if any query errors.FDConnectionDefs.ini can store encrypted credentials. Moving the file to a different machine or user profile may require the same master password, or you will have to re-enter credentials after restore.Run Tools → Backup Settings, open the resulting archive, and confirm whether FDConnectionDefs.ini is present. Then restore onto a clean VM, open Data Explorer, and check whether your named connections appear. That ten-minute test settles the question for your specific RAD Studio version, which matters more than any general statement — including this one.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.