Hi,
I'm trying to call a select of a table from a remote server to my main server using dbr.remote.call.
This in my code:
DROP PROCEDURE IF EXISTS sp_DBR_remote_call
$$
CREATE PROCEDURE `sp_DBR_remote_call`(inDate date)
BEGIN
drop table if exists remote_data_tmp;
create table remote_data_tmp (
id_coris int(8),
id_tran_ticket bigint,
cantidad_pasajeros int(2),
plan varchar(255),
nota varchar(255)
);
select 'dbr.remote.prepare', 'Server_Madrid', 'remote_data_tmp', 'sp_DBR_remote_first',inDate;
select 'dbr.remote.call', 'sp_DBR_show_remote'; END
$$
Always i have sintax error:
Could not execute the report. There was an error in the report.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '()' at line 1
when i use dbr.remote.call.
if I use call sp_DBR_show_remote instead of select 'dbr.remote.call', 'sp_DBR_show_remote' work but return me empty table i think that it's for a time problem
thanks