Database Operation Task Properties

The Database Operation Task Properties window contains the settings for a job step that executes as Database Operation Task.

Property Pages

In addition to the standard Response Events, this task supports the following special events:

Event Description
Value selected from database matches specified value Applies only if the operation is "Select a scalar value into a Job Variable." The Response will run if the value returned by the query (i.e., the value assigned to the target Job Variable) matches the specified value.
The database job was canceled Occurs if the database job being monitored by adTempus was canceled on the database server.

Database Connection

Database Type

Select the type of database server you want to connect to. adTempus supports the following database servers:

Specify custom connection string

Check this option to enter a custom OleDb connection string for connecting to the database.

If you include the tokens {userid} and {password} in your connection string, they will be replaced with the user ID and password from the Credential Profile specified in the Database Authentication section. This allows you to avoid having the password saved in clear text.

Database Connection

If you have not checked Specify custom connection string, enter the values needed to connect to the database.

For Oracle databases, you can choose to Use TNS, in which case you enter the service alias defined in the tnsnames configuration file (remember, this must be configured on the computer where the adTempus service is running, if that is different from where you are running the Console). Alternatively, adTempus can connect without using a TNS alias: enter the Host Name and Service Name directly.

Database Authentication

Select Use integrated (automatic) authentication if you want the database server to authenticate automatically based on the Windows identity used for the job.

Select Specify database credentials to enter explicit credentials for the database server. The Credential Profile selector will filter the available Credential Profiles to only those defined for the database server you have selected.

Test Connection

Click Test Connection to verify that adTempus can connect to the database server using the settings you have provided.

Database Operation

Specify the database operation to perform.

By default adTempus uses a timeout value of 20 minutes for database selection and update operations (all operations other than job execution). That is, if your SQL execution or selection takes more than 20 minutes, the database will abort it and the task will fail.

If you need to allow operations to run longer than this, change the timeout value in the Server Options window.

Execute SQL

adTempus will execute the SQL commands you provide. To execute multiple commands, you should separate commands with a line containing only "/" or "go".

Select a scalar value into a Job Variable

adTempus will execute the SQL query you provide, which should be a scalar selection query (a query that returns a single value, such as "select count(*) from MyImportTable"). The result of that query will be stored in the Job Variable that you specify, making it available for other operations within the job.

If you specify more than one command in the SQL editor, only the result from the last statement executed will be stored in the variable.

Select data into a DataSet

adTempus will execute the SQL query you provide and return the selected data as a .NET DataSet. The resulting DataSet can be sent to:

If you specify more than one command in the SQL editor, only the result from the last statement executed will be stored in the DataSet.

Execute database job

adTempus will execute a job defined on the database server (e.g., a job defined in SQL Server Agent on SQL Server). This operation is only available for SQL Server and Oracle databases.

Specify the name of the job to run. This value is not validated when you enter it; it must be the name of a job on the target database server.

If you check Wait for job to complete, the adTempus job step will continue to run as long as the database job is running, and the status of the step will reflect the outcome of the database job (succeeded or failed). If the target job is already running, adTempus will not start a new copy of it, but will monitor the already-running job.

If Wait for job to complete is not checked, adTempus will submit the job but will not wait for it to run. The status of the adTempus job step will be "Succeeded" if the database job was successfully started, or "Failed" if the job could not be submitted. If the target job is already running, adTempus will log an informational message in the adTempus Job Log and the step will be reported as "Succeeded."

Related Concepts

Database Operation Task