Sends native syntax to a remote server.
Syntax 1
FORWARD TO server-name { sql-statement }
Syntax 2
FORWARD TO [ server-name ]
FORWARD TO aseprod SELECT * from titles SELECT * from authors FORWARD TO
To send a statement to a remote server (Syntax 1)
To place Sybase IQ into passthrough mode for sending a series of statements to a remote server (Syntax 2)
When establishing a connection to server-name on behalf of the user, the server uses:
A remote login alias set using CREATE EXTERNLOGIN
If a remote login alias is not set up, the name and password used to communicate with Sybase IQ
If the connection cannot be made to the server specified, the reason is contained in a message returned to the user.
After statements are passed to the requested server, any results are converted into a form that can be recognized by the client program.
server-name is the name of the remote server.
sql-statement is a command in the native syntax of the remote server. The command or group of commands is enclosed in curly braces ({}) or single quotes.
When you specify a server_name, but do not specify a statement in the FORWARD TO query, your session enters passthrough mode, and all subsequent queries are passed directly to the remote server. To turn passthrough mode off, issue FORWARD TO without a server_name specification.
SQL—ISO/ANSI SQL compliant.
Sybase—Supported by Open Client/Open Server.
None