Creating a transfer RPC event

The client application can create a stored procedure within ASE that invokes the access server library transfer function. The access service library receives the transfer command as an RPC event with these arguments:

Example of a transfer RPC event

This example shows a stored procedure that initiates a bulk copy transfer statement:

create procedure replauth as
 begin
 execute servername. . .transfer
 “to ‘servername2 userid password’;”,
 “with replace into authors;”,
 “select * from authors;”
 end

where:

Executing a transfer RPC event

A client can log in to the ASE on which this procedure is defined and invoke it as follows:

execute replauth

When ASE executes replauth, it passes an RPC to the access service. The access service returns any result rows or messages to the client application, not to ASE.