CREATE NICKNAME statement - Examples for the Sybase wrapper
Use the CREATE NICKNAME statement to register a nickname for a Sybase table or view that you want to access. This topic includes a complete example with the required parameters.
The following example shows you how to register a nickname for a Sybase table or view using the CREATE NICKNAME statement.
CREATE NICKNAME SYBSALES FOR SYBSERVER."vinnie"."europe";
- A unique nickname that is used to identify the Sybase table or view. Important: The nickname is a two-part name—the schema and the nickname. If you omit the schema when you register the nickname, the schema of the nickname will be the authorization ID of the user who is registering the nickname.
- A three-part identifier for the remote object:
- SYBSERVER is the server definition name that you assigned to the Sybase database server in the CREATE SERVER statement.
- vinnie is the user ID of the owner to which the table or view belongs.
- europe is the name of the remote table or view that you want to access.
The federated server folds the names of the Sybase schemas and tables to uppercase unless you enclose the names in quotation marks.