FORWARD TO Statement

Sends native syntax to a remote server.

Quick Links:

Go to Parameters

Go to Examples

Go to Usage

Go to Standards

Go to Permissions

Syntax

Syntax 1

FORWARD TO server-namesql-statement } 

Syntax 2

FORWARD TOserver-name ]

Parameters

(back to top)

Examples

(back to top)

Usage

(back to top)

FORWARD TO enables users to specify the server to which a passthrough connection is required. The statement can be used:
  • To send a statement to a remote server (Syntax 1)
  • To place SAP 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 SAP 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.

Side Effects
  • The remote connection is set to AUTOCOMMIT (unchained) mode for the duration of the FORWARD TO session. Any work that was pending prior to the FORWARD TO statement is automatically committed.

Standards

(back to top)

  • SQL—ISO/ANSI SQL compliant.
  • SAP Sybase Database product—Supported by Open Client/Open Server.

Permissions

(back to top)

None

Related reference
CREATE EXTERNLOGIN Statement
CREATE SERVER Statement