Collection Contents Index Accessing multiple local databases Using remote procedure calls (RPCs) pdf/chap28.pdf

User's Guide
   PART 4. Database Administration and Advanced Use
     CHAPTER 28. Accessing Remote Data       

Sending native statements to remote servers


Use the FORWARD TO statement to send one or more statements to the remote server in its native syntax. This statement can be used in two ways:

If a connection cannot be made to the specified server, the reason is contained in a message returned to the user. If a connection is made, any results are converted into a form that can be recognized by the client program.

The FORWARD TO statement can be used to verify that a server is configured correctly. If you send a statement to the remote server and Adaptive Server Anywhere does not return an error message, the remote server is configured correctly.

Example 1 

The following statement verifies connectivity to the server named ASEserver by selecting the version string:

FORWARD TO ASEserver {SELECT @@version}

Example 2 

The following statements show a passthrough session with the server named ASEserver:

FORWARD TO ASEserver
select * from titles
select * from authors
FORWARD TO

For Info     For a complete description of the FORWARD TO statement, see FORWARD TO statement.


Collection Contents Index Accessing multiple local databases Using remote procedure calls (RPCs) pdf/chap28.pdf