Call via Scheduler
This page shows how to use the command line tool xu.exe to schedule extractions with third party scheduling tools. Windows Task Scheduler and the SQL Server Agent are used as examples for setting up extraction schedules.
Call via Windows Task Scheduler
- Open the Windows Task Scheduler by typing Taskschd.msc into the command line.
- Create a new task by clicking Actions > Create Task ... .
- Enter a name for the task and an optional description.
- In the tab Triggers click [New...] to add a time option.
- Set a start date and time and confirm the entry with [OK] .
- State the start program in Program / script in the tab Actions. Add the parameters of the extraction in Add arguments (optional). Example:
- Click [OK] to confirm the input.
- Check the summary and finish the setup.
The extraction is now scheduled and can be run by right-clicking the task and selecting the Run option.
Tip
Multiple extractions can be assigned to a single task. Edit the task and switch to the Actions tab. Create a new action as described above.
Call via SQL Server Agent
Note
You must have all necessary authorization for creating and executing jobs with the SQL Server Agent.
- Open the SQL-Server-Management-Studio (SSMS) to connect to an SQL-Server.
- Create a new job via SQL Server Agent > New > Job....
- Navigate to Select a page > Steps and click [New].
- Enter a Step name, Type, Run as and Command , e.g., xu, Operating system (CmdExec), SQL-Server-Agent Service Account. Example:
- Click Select a page > Advanced to set further options. Examples:
- On success action, On failure action
- Retry attemps, Retry interval
- Output file
- Click [OK] to confirm your input.
- Find the new job in SQL Server Agent > Jobs.
- Right-click the job and select Start Job at Step... to execute the job.
- The successful execution of the SQL Server Agent job is displayed in SSMS.