Contents Index Working with remote servers Creating remote servers using Sybase Central

ASA SQL User's Guide
  Accessing Remote Data
    Working with remote servers

Creating remote servers


Use the CREATE SERVER statement to set up remote server definitions. You can execute the statements directly, or use Sybase Central.

For ODBC connections, each remote server corresponds to an ODBC data source. For some systems, including Adaptive Server Anywhere, each data source describes a database, so a separate remote server definition is needed for each database.

You must have RESOURCE authority to create a server.

On UNIX platforms, you need to reference the ODBC driver manager as well.

For a full description of the CREATE SERVER statement, see CREATE SERVER statement.

Example 1 

The following statement creates an entry in the sysservers table for the Adaptive Server Enterprise server called ASEserver:

CREATE SERVER ASEserver
CLASS 'ASEJDBC'
USING 'rimu:6666'

where:

Example 2 

The following statement creates an entry in the sysservers table for the ODBC-based Adaptive Server Anywhere server named testasa:

CREATE SERVER testasa
CLASS 'ASAODBC'
USING 'test4'

where:

Example 3 

On Unix platforms, the following statement creates an entry in the sysservers table for the ODBC-based Adaptive Server Anywhere server named remasa:

CREATE SERVER remasa
CLASS 'asaodbc'
USING 'driver=/opt/sybase/SYBSsa9/lib/dbodbc9_r.so;dsn=my_asa_dsn'

where:

Example 4 

On Unix platforms the following statement creates an entry in the sysservers table for the ODBC-based Adaptive Server Enterprise server named remase:

CREATE SERVER remase
CLASS 'aseodbc'
USING 'driver=/opt/sybase/SYBSsa9/drivers/lib/libodbc.so;dsn=my_ase_dsn'

where:


Creating remote servers using Sybase Central

Contents Index Working with remote servers Creating remote servers using Sybase Central