How to download data from different servers?
Posted: 24.11.2014, 17:06
I have a datasnap application, i need to take data on mysql databases, i have 3 places with 3 servers, each one in each place, and all of them with its database.
Is a manage app with clients and products. In one moment the boss need the information (for example) about the debt of a client, obviously i have to make a query for example in the 3 servers, because client probably buy products in different places.
My idea is having a unit in delphi XE2, and take the parameters (IP,Port,User,etc) from an .INI file, obviously each one per server i had added. Wich componnents i will need in order to specify every server i had installed from the .INI? I was reading about ZGroupedConnection. I know i have to make for example:
where idc is the client that boss need information about.
I would execute this query in each connection because the db is the same in each server. At that point i need a Zquery.
But my question is how to go proving with one server and then other and then other...
Is a manage app with clients and products. In one moment the boss need the information (for example) about the debt of a client, obviously i have to make a query for example in the 3 servers, because client probably buy products in different places.
My idea is having a unit in delphi XE2, and take the parameters (IP,Port,User,etc) from an .INI file, obviously each one per server i had added. Wich componnents i will need in order to specify every server i had installed from the .INI? I was reading about ZGroupedConnection. I know i have to make for example:
Code: Select all
Select tickets from ticket where idcliente=:idc
I would execute this query in each connection because the db is the same in each server. At that point i need a Zquery.
But my question is how to go proving with one server and then other and then other...