HP (Hewlett-Packard) 544530-001 Computer Accessories User Manual


 
If Neoview Script was invoked with the -noconnect launch parameter, Neoview Script prompts
you for the values.
Currently, none of the commands work with the -noconnect option.
Examples
These commands create a new connection to the Neoview platform from the current or existing
Neoview Script interface:
SQL>connect
User Name: super.services
Password:
Connected to DataSource TDM_Default_DataSource.
SQL>connect super.services/password
Connected to DataSource TDM_Default_DataSource.
SQL>connect super.services/password@host0101
Connected to DataSource TDM_Default_DataSource.
SQL>connect super.services,NVSCRIPT
Password:
Connected to DataSource NVSCRIPT.
DISCONNECT Command
The DISCONNECT command terminates the connection from the Neoview platform, not from
the Neoview Script interface.
Syntax
DISCONNECT [IF ERRORCODE{=|<|>|<=|>=|<>}error-code]
error-code
is an integer that represents an error condition of the previously executed
command. If the previously executed command returns this error code, the
Neoview Script interface disconnects and exits.
Commands that execute successfully in the Neoview Script interface have an
error code of zero (0). Interface commands that do not perform SQL operations
and that fail to execute have an error code of -1. A failed SQL operation has a
specific SQL error code associated with the error condition. For more information
about SQL error messages, see the Neoview Messages Manual.
Considerations
In the Neoview Script interface, you must enter the command on one line.
Examples
This command terminates the connection to the Neoview platform. You can connect to the
Neoview platform by using the CONNECT and RECONNECT commands:
SQL>disconnect
Session Disconnected. Please connect to the database by using connect/reconnect command.
84 Neoview Script Interface Commands