Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: FireDAC and .ini file


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
Guest
FireDAC and .ini file
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 1, 2014 11:39 AM
I work with Windows 7, and C++ XE7.

I try to connect my Oracle database with a .ini file.

With dbExpress it works with :

SQLConnection1->LoginPrompt = false;
SQLConnection1->LoadParamsOnConnect = false ;
SQLConnection1->LoadParamsFromIniFile("E:
Test1
MyDbexpressDatabases.ini");
SQLConnection1->ConnectionName = "MyOracleDatabase";
SQLConnection1->DriverName = SQLConnection1->Params->Values["DriverName"];
SQLConnection1->Connected = true;

But when i try to do the same with FireDAC,
I have something wrong :

FDConnection1->Connected = false;
FDConnection1->LoginPrompt = false;
FDManager1->DriverDefFileAutoLoad = false;
FDManager1->ConnectionDefFileName = "E:
Test1
MyFiredacDatabases.ini";
FDManager1->LoadConnectionDefFile();
FDConnection1->ConnectionDefName = "MyOracleDatabase";
FDConnection1->Connected = true;

Could you help me to write properly the FireDac code ?

Best regards

Gabriel

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02