Table of Contents

Search

  1. About the Data Vault Administrator Guide
  2. Introduction to the Data Vault
  3. Data Vault Service Startup and Shutdown
  4. Data Vault Configuration
  5. Data Vault SSL Setup
  6. Data Vault ODBC Setup
  7. Data Vault Administration
  8. Data Repartitioning
  9. Partial Data Vault Copy
  10. Archived Data Migration
  11. Bulk File Uploader
  12. Data Vault Administration Tool
  13. Data Vault Logs
  14. User Account Privileges
  15. ssasql Command Line Program
  16. Data Vault Audit Log
  17. Sample Configuration Files

Data Vault Administrator Guide

Data Vault Administrator Guide

ssasql Operating Modes

ssasql Operating Modes

ssasql can operate in SQL mode or in Session (SESS)mode. Each mode has its own set of commands. Additionally, there is a set of system-level commands. Session mode enables users to connect and disconnect database sessions. SQL mode enables users to execute SQL statements interactively against a database. The system-level commands include commands for switching between the operating modes.
The ssasql prompt always reflects the mode currently in use. When in Session mode, ssasql displays a prompt of the form
SESS:
n
>
; when in SQL mode, the prompt is
SQL:
n
>
(where
n
is a number reflecting the command number for each mode). Each time a command is issued within a particular mode, the command number displayed in the prompt increases by one.
When the ssasql invocation connects to the database successfully, the user is automatically placed in SQL mode. If the ssasql invocation does not connect successfully, either because the invocation arguments are invalid or are not included, the user is automatically placed in Session (SESS) mode.
The standard redirection character (
<
) may be used in conjunction with the ssasql invocation to execute SQL commands contained in a batch file, as in the following example:
ssasql server1_vip dba <batch.sql
This ssasql invocation connects to a Data Vault repository database or Nucleus database instance called
vip
, using the connection
server1_vip
, as the user DBA. The SQL statements contained in the ASCII file
batch.sql
are executed automatically. To return control to the operating system shell when command execution is finished, include the
.EXIT
system command at the end of the batch file.

0 COMMENTS

We’d like to hear from you!