Integration service entry (experiment 9) logging and email notification

Source: Internet
Author: User
Tags ssis
By default, all SSIS tasks can trigger events and are captured by the execution results tab. You can also selectively capture some events and record them to SSIS logs. To check whether the task is successfully executed

By default, all SSIS tasks can trigger events and are captured by the execution results tab. You can also selectively capture some events and record them to SSIS logs. To check whether the task is successfully executed

By default, all SSIS tasks can trigger events and are captured by the execution results tab. You can also selectively capture some events and record them to SSIS logs.

To know whether the task is successfully executed, you can add a "send mail task" to send a notification email to the specified recipient.


I. Use Logging

1. Enable Logging

Select "SSIS" from the main menu, and select "logging" from the drop-down menu ".


2. Add a log provider




3. Select events

In the left-side container pane, select all containers. Check the logs used by the container. You can configure multiple logs for different containers.


Select the events recorded for the container.


4. Enable debugging


5. view log records


6. Stop Logging

Because the logging function is bound to the corresponding container, you only need to remove the check box before the corresponding container to stop logging.



Ii. Email Notification

1. Add "send mail task"

Drag the send mail task icon from the SSIS toolbox to the control flow pane.


2. Configure the SMTP Connection Manager

Right-click the send mail task icon and choose Edit from the context menu ". Alternatively, double-click "send mail task ".

Create an SMTP connection.




3. Establish a connection

Connect the output of "delete file" and "copy file" to "send mail task ".

Select the connection arrow from "Delete Connection to" send mail task ", Press Ctrl, and select the connection arrow from" copy file "to" send mail task, right-click one of the arrows and select "properties" (or press F4 or Alter + Enter ). Change the Value to "Failure ". In this way, only when any of the "delete file" and "copy file" tasks fails, the "send mail task" will be executed again ".



4. Modify priority constraints

Select any one of the arrows connecting to the send mail task, right-click and select Edit (or double-click ). Change the priority constraint to "logical or ".


5. Add comments

Right-click the "send mail task" and select "add annotation ".


6. Enable debugging

Before debugging, delete the Export folder under C: \ LabFiles. Enable debugging.


In the progress pane, you can see that an error is reported during debugging. The error message is "invalid directory name ".


7. Stop debugging

Stop debugging.

In the C: \ LabFiles folder, create a folder named Export.


This article is from the "MSSQL we have Chased Together" blog and is not reposted!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.