RAD Studio 10.4.1 is now available! Learn more. 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   Learn More About Upgrading

Related posts
C++CodeDelphi

Manage Your Collection Of Pages Easily With TCardPanel Component For Your Delphi VCL Application

CodeDelphiRAD Studio

Learn How To Use FireDAC In The Dynamic-Link Libraries With DLL Sharing Sample In Delphi

C++CodeDelphi

Learn To Build A Python GUI For Working with HTTP Requests With Requests Library In A Delphi Windows App

DelphiShowcase

Lovingly Crafted Software To Plan And Simulate Virtual Model Railroads Is Built In Delphi

2 Comments

Leave a Reply to Embarcadero Admin Cancel reply

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

IN THE ARTICLES