SQL Server Reporting Services (SSRS)
The SSRS Execution Method lets you use JAMS to run a SQL Server Reporting Services (SSRS) report and save the output to a specified location. The report must already be published on the report server before you set up the JAMS Job. Reports cannot be created or modified from within JAMS.
When you save the Job, JAMS reads the parameters the selected report declares and adds them to the Job's Parameters tab. See Report Parameters below.
To email the saved report or send it to a printer, add a report Schedule Item to the Job. See Send a Report as an Email and Send a Report as an SSRS Print Report for more information.
SSRS Jobs send email only through an SMTP mail server connection. Graph API mail server connections are not supported for SSRS Jobs. See Connections to Mail Servers for more information.
Before You Begin
Before you set up an SSRS Job, ensure you have the following:
- The Report Server URL. This is the base URL of the report server web service, such as
http://<server name>/ReportServer. It must start withhttp://orhttps://. - Access to the report on the report server. With Windows Authentication, the report runs as the Job's Execute As user. With Report Server Authentication, it runs as the report server account.
- Access to the report on the report server for the Job's Execute As user, even when the Job uses Report Server Authentication. When the Job runs, JAMS reads the report's parameters as the Execute As user.
- A Report Location that the Job's Execute As user can write to. JAMS saves the report output there.
- An Agent, if the Job will run on an Agent rather than the JAMS Scheduler. See JAMS Agents for more information.
Creating Credentials
You need one or two Credentials in JAMS to run an SSRS Job:
- A Credential that runs the Job in JAMS. This Credential must be a valid user on the Windows machine and must be able to write to the Report Location.
- A Credential for the report server, only if the Job uses Report Server Authentication. It stores the username and password of the report server account.
The user who saves the Job needs Submit access to each Credential selected on it. Get Password access is not required.
Adding a Credential for Running the JAMS Job
- Click Environment from the main menu.
- Click Credentials.
- Click Add. The Add a New JAMS Credential drawer opens.
- In the Display Name field, enter a name for the Credential.
- In the Logon Username field, enter the username for the Credential.
- In the Password and Reenter Password fields, enter the password.
- Click Save & Return.
Adding a Credential for the Report Server
Add this Credential only if the Job will use Report Server Authentication.
- Click Environment from the main menu.
- Click Credentials.
- Click Add. The Add a New JAMS Credential drawer opens.
- In the Display Name field, enter a name for the Credential.
- In the Logon Username field, enter the username of the report server account.
- In the Password and Reenter Password fields, enter the password for that account.
- Click Save & Return.
See Credentials for more information.
Creating an SSRS Job
- Click Jobs from the main menu.
- Click a Folder in the Folder Navigator where the Job will be saved.
- Click Add. The Add a New JAMS Job drawer opens, with the Folder field set to the selected Folder.
- In the Job Name field, enter a name for the Job.
- In the Execution Method field, search for and select SSRS.
- Click Save & Continue. The Job opens for editing.
- Click the Source tab.
- In the Report Server field, enter the Report Server URL, such as
http://<server name>/ReportServer. - Under Log on to the report server, select one of the following:
- Use Windows Authentication – Connects to the report server with Windows Authentication. This is the default.
- Use Report Server Authentication – Connects to the report server with the Credential you select in the next step.
- If you selected Use Report Server Authentication, in the Credential field, select the JAMS Credential for the report server. This field is required for Report Server Authentication and is unavailable for Windows Authentication.
- In the Report Path field, select the report from the list, or type the path to the report, such as
/Sales/Monthly Summary. The list shows the reports published on the report server and loads after you leave the Report Server field. If the list cannot be loaded, the message from the report server is shown below the field, and you can still type the path. - In the Report Format field, select a format from the list, or type a format name. The list contains CSV, EXCEL, IMAGE, MHTML, PDF, WORD, and XML. The default is PDF.
- In the Report Location field, enter the folder where the report output will be saved.
- In the Report Title field, enter the title for the saved report.
- Click the Schedules tab to add schedule items to set when the Job will run. See Schedules for more information.
- Click the Properties tab.
- In the Execute As field, select the JAMS Credential to run the Job.
- In the Agent field, select the Agent if the Job will not run on the Scheduler.
- Click Save.
Changing the Report Server, or switching between Windows Authentication and Report Server Authentication, clears the Report Path, because a Report Path applies only to the report server it was selected from. Select or enter the Report Path again before you save.
After you create the Job, it is submitted based on its schedule. You can also submit it manually. See Manually Submitting Jobs for more information. To view the Job's progress, click Monitor from the main menu.
Report Parameters
When you save an SSRS Job that has a Report Server and a Report Path, JAMS reads the parameters the selected report declares and adds them to the Job's Parameters tab.
- A report parameter that does not exist on the Job is added as a new Job Parameter, with the report's prompt and a matching data type.
- A Job Parameter with the same name, ignoring case, keeps its value and other settings. Only its data type and prompt are updated to match the report.
- Job Parameters that the report does not declare are not removed.
- If the report server cannot be reached when you save, the Job is still saved and its Parameters are left as they are.
To set the values passed to the report, click the Parameters tab and edit each Parameter. See Parameters for more information.