Modifies the attributes of a remote server. Changes made by ALTER SERVER do not take effect until the next connection to the remote server.
ALTER SERVER server-name [ CLASS 'server-class' ] [ USING 'connection-info' ] [ CAPABILITY 'cap-name' { ON | OFF } ] [ CONNECTION CLOSE [ CURRENT | ALL | connection-id ] ] server-class - (back to Syntax) { ASAJDBC | ASEJDBC | SAODBC | ASEODBC | DB2ODBC | MSSODBC | ORAODBC | ODBC } connection-info - (back to Syntax) { machine-name:port-number [ /dbname ] | data-source-name }
If an ODBC-based server class is used, the USING clause is the data-source-name, which is the ODBC Data Source Name.
In general, you need not alter a server’s capabilities. It might be necessary to alter capabilities of a generic server of class ODBC.
These SQL statements are equivalent and close the current connection to the remote server:
ALTER SERVER server-name CONNECTION CLOSE ALTER SERVER server-name CONNECTION CLOSE CURRENT
You can close both ODBC and JDBC connections to a remote server using this syntax. You do not need the SERVER OPERATOR system privilege to execute either of these statements.
You can also disconnect a specific remote ODBC connection by specifying a connection ID, or disconnect all remote ODBC connections by specifying the ALL keyword. If you attempt to close a JDBC connection by specifying the connection ID or the ALL keyword, an error occurs. When the connection identified by connection-id is not the current local connection, the user must have the SERVER OPERATOR system privilege to be able to close the connection.
ALTER SERVER ase_prod CLASS 'ASEODBC' USING 'ase_prod'
ALTER SERVER infodc CAPABILITY 'insert select' OFF
ALTER SERVER rem_test CONNECTION CLOSE ALL
ALTER SERVER rem_test CONNECTION CLOSE 142536