CREATE SERVER statement

Description

Adds a server to the sysservers table.

Syntax

CREATE SERVER server-name 
CLASS 'server-class' 
USING 'connection-info' 
[ READ ONLY ]

Parameters

server-class:

{ ASAJDBC| ASEJDBC | ASAODBC | ASEODBC | DB2ODBC | MSSODBC | ORAODBC | ODBC}

connection-info:

{ machine-name:port-number [ /dbname ] | data-source-name }

Examples

Example 1

Usage

CREATE SERVER defines a remote server from the Sybase IQ catalogs.

For more information on server classes and how to configure a server, see Chapter 17, “Server Classes for Remote Data Access” in the Sybase IQ System Administration Guide.

USING clause If a JDBC-based server class is used, the USING clause is hostname:port-number [/dbname] where:

For more information, see “JDBC-based server classes” in the Sybase IQ System Administration Guide.

If an ODBC-based server class is used, the USING clause is the data-source-name. The data-source-name is the ODBC Data Source Name.

READ ONLY The READ ONLY clause specifies that the remote server is a read-only data source. Any update request is rejected by Sybase IQ.


Side effects

Automatic commit.

Standards

Permissions

Must have RESOURCE authority.

See also

“ALTER SERVER statement”

“DROP SERVER statement”