AMT Help Files
Home AMT Developer Studio AMT Enterprise Repository Database Stored Procedures Remote Stored Procedure

Remote Stored Procedure

To set up a remote stored procedure, follow the same process as for standard stored procedures, with these key differences:

  1. Only the parameters are important. You must define them in the same order as they appear in the stored procedure on the remote system.
  2. The system doesn't define the stored procedure in the local database because it's marked as a remote procedure.
  3. In the Developer, assign the remote database to the database property of the stored procedure component.

Database stored procedure options dialog with remote database settings

BEGIN_DEFINITIONS
VAR
    SP_TRACKING_DELETE : storedproc(SP_TRACKING_DELETE)
END_DEFINITIONS

ROUTINE PROCESS_MAIN
BEGIN_ROUTINE
    SP_TRACKING_DELETE.database := 'remotedbs'
    SP_TRACKING_DELETE.execute()
    if resok      
        sme(SP_TRACKING_DELETE.X)
    else      
        sme(getlastresult)    
    endif      
END_ROUTINE

 

Contents

 Go to top