Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
C++CodeDatabaseDelphiIDERAD Studio

Learn How To Easily Work With Delphi Database Connection Definitions With This Sample

The ConnectionDefs property is a powerful tool that can be used to make your connections management simple and flexible, with the possibility of persisting and transport your connection’s parameters whenever you want, using these transportable files you can load and navigate between previously configured connections on self-contained .INI files, thus, you don’t have to worry about load and save settings on settings files yourself, this is all abstracted within connectionDef’s functions.

ConnectionDefs requires just the actual native FireDac installed.

To use the ConnectionDefs function just add the TFDManager  on your code, after that you can:

Create connection definition on fly:

Connect to database:

Delete connection definition:

Set connection definition file name:

Load connection definition file:

Add connection definition:

This is similar to create connection definition. The difference is that you may create a connection definition after loading other connection definitions from the file.

Clone Connection definition:

You can find Delphi code samples in GitHub Repositories.

Check out the full article in the DocWiki about the ConnectionDefs.


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Related posts
DelphiIDE

The Future of Startups Demands Massive Productivity

C++DelphiInterBaseRAD Studio

RAD Server CRUD Procedures - Part 3

C++CodeDatabaseDelphiRAD Studio

TCoffeeAndCode: Data Visualization – Components, Libraries, Tools and Services

DelphiShowcase

This Native High-Accuracy Walking Profiler Can Measure Reality

2 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES