Redigera

Dela via


Create a data alert in Data Alert Designer

Applies to:  SQL Server Reporting Services (2016) ❌ Power BI Report Server  SharePoint

You create data alert definitions in Data Alert Designer. After you save the alert definitions, you can reopen, edit, and then resave them in Data Alert Designer. For information about editing alert definitions, see Manage My Data Alerts in Data Alert Manager and Edit a data alert in Alert Designer.

Note

Reporting Services integration with SharePoint is no longer available after SQL Server 2016.

Create a data alert definition

  1. Locate the SharePoint library that contains the report that you want to create a data alert definition for.

  2. Select the report.

    The report runs. If the report is parameterized, verify that the report shows the data that you want to receive alert messages about. If you do not see the columns or values you are interested in, you might want to rerun the report, using different parameter values.

    Note

    The parameter values you chose to run the report are saved in the alert definition and will be used when report is rerun as a step in processing the alert definition. To use different parameter values, you must create a new alert definition.

  3. On the Actions menu, select New Data Alert.

    The following picture shows the Actions menu.

    Screenshot of the Open Alert Designer from SharePoint library, highlighting the New Data Alert Option in the Actions menu.

    The Data Alert Designer opens, showing the first 100 rows of the first data feed that the report generates in a table.

    Note

    If you do not see the New Data Alert option, the alerting service is not configured on the SharePoint site or the SQL Server edition does not include data alerts. For more information, see Reporting Services SharePoint Service and service applications.

    If the New Data Alert option is grayed, the report data source is configured to use integrated security credentials or prompt for credentials. To make the New Data Alert option available, you must update the data source to use stored credentials or no credentials.

    The name of the data feed appears in Report data name drop-down list.

  4. Optionally, select a different data feed in the Report data name drop-down list.

    If no data feed is generated from the report, you cannot create an alert definition for the report. The layout of the report determines the content of each data feed. For more information see, Generate data feeds from reports (Report Builder and SSRS).

  5. Optionally, in the Alert name text box, update the default name to be more meaningful.

    The default name of the alert definition is the name of the report. Alert definition names do not have to be unique, which can make it difficult to tell them apart when you later view the list of your alerts in Data Alert Manager. It is recommended that you use meaningful and unique names for your alert definitions.

  6. Optionally, change the default data option from any data in the data feed has to no data in the data feed has.

  7. Select Add rule.

    A list of the columns in the data feed appears.

  8. In the list, select the column that you want to use in the rule, and then select a comparison operator and enter the threshold value.

    Depending on the data type of the selected column, different comparison operators are listed. If the column has a date data type, a calendar icon displays next to threshold value for the rule. You can enter a data by selecting a date in the calendar or typing the date.

    Data Alert Designer provides two comparison modes: Value Entry Mode and Field Selection Mode. The default mode is Value Entry Mode. You can add OR clauses only when you are in Value Entry Mode and are using the is comparison.

  9. To add an OR clause, select the down-arrow, and then choose Value Entry Mode.

  10. Type the comparison value.

  11. Optionally, select the ellipsis (...) again.

    The ellipsis (...) appears on the line that contains the first clause.

    An OR clause is added below and within the AND rule.

  12. Optionally, select the down-arrow, select Field Selection Mode, and then select a column in the list.

    You will notice that the ellipsis (...) that you select to add OR clauses has disappeared.

  13. Optionally, select Add rule again to add additional rules.

    The rules are combined by using the AND logical operator.

  14. Select an option in the recurrence list. Depending on the type of recurrence, enter an interval.

  15. Optionally, select Advanced.

  16. Optionally, change the date that the alert message starts on by typing a different date or opening the calendar, and then selecting a date in the calendar.

    The default start date is the current date.

  17. Optionally, select the checkbox located next to Stop alert on, and then choose a date to stop the alert message.

    By default, an alert message has no stop date.

    Note

    Stopping an alert message does not delete the alert definition. After you stop an alert message, you can restart it by updating the start and stop dates. For information about deleting alert definitions, see Manage My Data Alerts in Data Alert Manager.

  18. Optionally, clear the Send message only if results change checkbox.

    If you send alert messages frequently, redundant information might not be welcome and you should not clear this checkbox.

  19. Enter the email addresses of alert message recipients. Separate addresses with semicolons.

    If the email address of the person who created the alert definition is available, it is added to the Recipient(s) box.

  20. Optionally, in the Subject text box, update the Subject line of the alert message.

    The default Subject is Data alert for <data alert name>.

  21. Optionally, in the Description text box, type a description of the alert message.

  22. Select Save.