Defines a remote server, or the name of the local server; specifies the server for remote procedure calls (RPCs) when using the host and port parameters.
sp_addserver lname [, class [, pname]]
Component Integration Services (CIS) only:
sp_addserver 'logical_server_name', ASEnterprise, 'host:port:filter'
local – local server (there can be only one) used only once after start-up, or after restarting the SAP ASE server, to identify the local server name so that it can appear in messages printed by the SAP ASE server
null – remote server with no category defined
ASEnterprise – all versions of SAP ASE; support for SQL Server 4.9 is not provided.
ASAnywhere – Adaptive Server Anywhere version 6.0 or later.
ASIQ – a server with server class ASIQ is any version of Adaptive Server IQ of 12.0 or later.
direct_connect (Component Integration Services only) – an Open Server-based application that conforms to the direct_connect interface specification.
sds– conforms to the interface requirements of a Specialty Data Store™ as described in the SAP ASE Specialty Data Store Developer’s Kit manual.
(Component Integration Services only) You can use pname to specify the hostname or IP address and the port of the server you wish to connect to. This enables you to bypass the need for directory services (such as LDAP or an interfaces file) for the server when using the CT-Library. Use the following format:
"hostname:port"
"ipaddr:port"
filter = ssl [= 'CN = common_name']
Use this format to declare the host:port number:
ip_address:port
sp_addserver 'big_logical_server', ASEntrprise, 'maynard:23954:ssl= "CN=ase1.big server 1.com"'
The rules for common names are the same as those used for dynamic listeners and the directory service entries.
sp_addserver GATEWAY
sp_addserver GATEWAY, null, VIOLET
sp_addserver PRODUCTION, local
sp_addserver S1, ASEnterprise, "myhost:10224"
sp_addserver S3, direct_connect, "192.123.456.010:11222"
The sysservers table identifies the name of the local server and its options, and any remote servers that the local server can communicate with.
To execute a remote procedure call on a remote server, the remote server must exist in the sysservers table.
If lname already exists as a server name in the sysservers table, sp_addserver changes the remote server’s srvnetname to the name specified by pname. When it does this, sp_addserver reports which server it changed, what the old network name was, and what the new network name is.
The installation or upgrade process for your server adds an entry in sysservers for a Backup Server. If you remove this entry, you cannot back up your databases.
The SAP ASE server requires that the Backup Server have an lname of SYB_BACKUP. If you do not want to use that as the name of your Backup Server, or if you have more than one Backup Server running on your system, modify the pname for server SYB_BACKUP with sp_addserver so that the SAP ASE server can communicate with Backup Server for database dumps and loads.
If you specify an lname, pname and class that already exist in sysservers, sp_addserver prints an error message and does not update sysservers.
Use sp_serveroption to set or clear server options.
See also Remote Servers in Component Integration Services User’s Guide.
The permission checks for sp_addserver differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be a user with manage server privilege. To execute sp_addserver for a server that is a shared disk cluster, you must be a user with manage cluster privilege and manage server privilege. |
Disabled | With granular permissions disabled, you must be a user with sso_role. |
Values in event and extrainfo columns from the sysaudits table are:
Information | Values |
---|---|
Event | 38 |
Audit option | exec_procedure |
Command or access audited | Execution of a procedure |
Information in extrainfo |
|