Run SQL Query

Run SQL Query

The Run SQL Query command executes an SQL query and retrieves the results. This command is restricted and may only be executed when the user of is logged in to the Digital Storage Manager or Virtual Ticket desktop client as the Administrator.

Run SQL Query sql_statement

 

Result: results_list

 

Arguments

Type

Description

sql_statement

String

A SQL statement to be executed by the database server.

results_list

List

List of records representing database rows.

Example: Determine the MetaCommunications database type.

tell application "Virtual Ticket 8.0"
set queryResults to ¬
Run SQL Query "select application_family from database_state"
set databaseType to application_family of item 1 of queryResults
end tell

 

Example: Obtain a list of customers.

tell application "Virtual Ticket 8.0"
set customerList to ¬
Run SQL Query "select Customer_Code, Customer_Name from
Customers"
end tell


Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.