Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Creating scheduler tasks in Aqua Data Studio is very simple. There are different managing options within these scheduled tasks such as refreshing, editing, deleting, and viewing logs and results, You can also set an email address to receive email notifications when the tasks are run with different details. See E-mail Options to configure these settings.

...

  • Selecting Create Scheduled Task from the Tools menu in the Main Application Menu

Create Schedule.pngImage RemovedImage Added

  • Selecting Tools > Create Scheduled Task from the right-click pop-up menu on a database in the Schema Browser.

Create from Schema Browser.pngImage RemovedImage Added

  • Clicking the Create Scheduled Tasks icon in the Query Analyzer Toolbar.

Create from Query Analyzer.pngImage RemovedImage Added


Creating a SQL Scheduled Task

...

Note
Note that if you choose to Create Scheduled Task from the Query Analyzer Window, Aqua Data Studio takes the configuration for Server, Database, and Query from that window, helping you save time when scheduling a task.

Choose Server or Database4.pngImage RemovedImage Added

2. The first tab in the Create Scheduled Task Dialog is the General Tab. In this section, specify the Database Connection. The first option is to specify a connection, a database, and a Schema where the scheduled task will be run. Next, specify a Name for the task, by default the name is schedule_number, this can be changed to any name you want that contains only ASCII characters. Now, select the Interval for the task, select from the drop-down menu the interval you want (Once, Daily, Weekly, Monthly). Then choose the start date and time in the drop-down calendar menu. If the interval you chose is Daily, Weekly, or Monthly you have to choose the repetition frequency of the task. When the interval is Weekly or Monthly the Advanced menu pops up. Once you chose the Advanced Task Settings, next is the Run as credentials option. Click Next to select the Query Tab.

Create Scheduled Task General.pngImage RemovedImage Added

3. In the Query Tab, select an existing SQL file or enter a query for the scheduled task to run. Open an existing script by clicking on the Specify the Open Script icon. Run the query, stop it, execute all statements in a single transaction, or reconnect. Be aware that executing the queries may modify data in your database depending on the content of the queries. Click Next to select the Results Tab.

Create Scheduled Task Query.pngImage RemovedImage Added

4. In the Results Tab, specify where the scheduled task will be saved to. The first option is to determine the folder where the results will be stored. By default, the path is a new folder inside the user's Documents for Aqua Data Studio Repository and Scheduler. Change this path by clicking on the Browse button. Next choose the format for the results file in the drop-down menu between CSV, XLS, or XLSX. The next section is to set up a Date, Time, and Number Formatting according to your needs. Then, fill out the email section, if you want your query results emailed click the checkbox. Click on the Email Settings button to review or edit your email configuration. Then, fill in the email you want to send the results to, you can also fill in emails for CC and BCC. The subject of the email will be the scheduled task name > results if you want to change this check the User Defined box and type in the name you want. Finally, you can choose to include a timestamp and its format on the subject. Click Next to select the Status Tab.

Scheduled Tasks Results.pngImage RemovedImage Added

5. The Status Tab schedules the task, the bar at the top shows the progress in the scheduling, when it finishes the status is displayed as well as the elapsed time. The log shows the procedure for scheduling the task and status. Click Close to leave the Create Scheduled Task Dialog. Find the scheduled tasks in theManage Scheduled Tasks window.Create Scheduled Task Status.pngImage Removed

Image Added

Anchor
Advanced
Advanced
Advanced Menu

Inside the General Tab in the Create Scheduled Tasks Dialog when the interval is chosen the advanced menu is available when the interval is Daily, Weekly, or Monthly.

Interval Options.pngImage RemovedImage Added

If you choose a Daily Interval, the Advanced menu is enabled and you can choose a date for the scheduled task to expire.

Daily Advanced.pngImage RemovedImage Added

If you choose the Weekly Interval, the advanced menu immediately pops up, where you can choose a date for the scheduled task to expire and the days of the week the task will be run. 

Weekly Advanced.pngImage RemovedImage Added

When the monthly interval is chosen, the advanced menu pops up as well, here you can choose a date for the scheduled task to expire and also the months and the specific day of the month the task will be run.Monthly Advanced.pngImage Removed

Image Added

Anchor
Credentials
Credentials
Run as credentials

Inside the Run As option in the General Tab click on the Credentials button. Aqua Data Studio displays a window where you should type in your Login Name, the Password, and Confirm it.

Image AddedRun As credentials.pngImage Removed

Tip
Make sure that the Windows User has sufficient privileges.

Each time you schedule a task you need to click on the Credentials button to select a user, however, the last Login Name and Password you set for the scheduled task will be automatically populated. Then Click OK and Next in the General Tab to continue scheduling.

Assign Permissions
Info
The user account needs to have an installation of Aqua Data Studio with an active license.

If the user trying to run a scheduled task is a Non-Admin, Domain User or Group User make sure to assign the right permissions to the user or group.

...