Forums

DB READ ACTION - EXTERNAL DATABASE

giacall 10 Sep, 2014
:shock: 😲
What i can see... on_load action -> dbread

Now.. After upgrade to the latest release of CFv5, there i s an 'External Database' label for setting..
Ok.. By default the driver is setted to mysql.
It's possible to use this features to connect to an external DB (MSSQL) to retrieve data from some table?

And.. If yes 🙄 which is the correct driver to use??

Thank's in advance
GreyHead 11 Sep, 2014
HI giacall,

My best guess is that what is expected is the name of one of the driver files in /libraries/joomla/database/driver :
mysqli, mysql, oracle, pdo, postgresql, sqlazure, sqlite, sqlsrv.

Bob
giacall 11 Sep, 2014
Hi Bob..

Thank's for replay..
I tryed to setup the external connection in the following way:
-ENABLED -> Yes
-DRIVER -> sqlsrv
-HOST -> IP MSSQL SERVER
-NAME -> Mssql Database name
-USER -> Username ( i use the sa user!!)
-PASSWORD -> sa user password
-PREFIX -> Empty.. Cause i would like only read the data with a select

After "load tables" i receive an error "FAILED TO CONNECT!!"

I make some mistake?!?
GreyHead 11 Sep, 2014
1 Likes
Hi giacall,

Sorry I have no idea :-( I don't know how Max has built this code.

Is the external database accessible from the Joomla! Server?

Bob
Max_admin 12 Sep, 2014
Answer
Hi,

Unfortunately no, only mySQL is currently supported, although all Joomla databases should be, but the SQL syntax is different and CF doesn't support all types yet.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.