You can configure the event handler’s scope under the Executable dropdown box. An executable can
be a package, a Foreach Loop container, a For Loop container, a Sequence container, or a task. In
the Event Handler box, you can specify the event you wish to monitor. The events you can select are
described in the following table:
Event When Event Is Raised
OnError When an error occurs
OnExecStatusChanged When an executable’s status changes
OnInformation When an informational event is raised during the
validation and execution of an executable
OnPostExecute When an executable completes
OnPostValidate When an executable’s validation is complete
OnPreExecute Before an executable runs
OnPreValidate Before an executable’s validation begins
OnProgress When measurable progress has happened on an
executable
OnQueryCancel When a query has been instructed to cancel
OnTaskFailed When a task fails
OnVariableValueChanged When a variable is changed at runtime
OnWarning When a warning occurs in your package
Event handlers are critically important to developing a package that is “self-healing” — that is, it
can correct its own problems. The key events to handle are OnError, OnWarning, OnPreExecute,
and OnPostExecute. You will learn more about event handlers in Chapter 18.
Package Explorer
The final tab in the SSIS Package Designer
is the Package Explorer tab, shown in
Figure 2-26. This tab consolidates all the
design panes into a single view, and lists all
the tasks, connections, containers, event
handlers, variables, and transforms in your
package. You can double-click any item here
to configure it easily. You can also modify
the properties for the item in the Properties
window on the right after selecting the item
you wish to modify.
This tab is useful if you have a task that
is throwing an error and you can’t find it
to remove or fix it. This problem happens
sometimes when you have tasks that accidentally fall behind a container or another task.
คุณสามารถปรับแต่งขอบเขตจัดการเหตุการณ์ในกล่องแบบหล่นลงปฏิบัติการ ปฏิบัติการสามารถ
เป็นแพคเกจ , foreach loop ตู้คอนเทนเนอร์ , ตู้คอนเทนเนอร์ ห่วง ลำดับ คอนเทนเนอร์ หรืองาน
จัดการเหตุการณ์ในกล่องที่คุณสามารถระบุเหตุการณ์ที่คุณต้องการตรวจสอบ เหตุการณ์ที่คุณสามารถเลือกเป็น
อธิบายในตารางต่อไปนี้ :
เหตุการณ์เมื่อมีเหตุการณ์ขึ้น
onerror เมื่อข้อผิดพลาดเกิดขึ้นonexecstatuschanged เมื่อมีการเปลี่ยนแปลงที่ oninformation
สถานะเมื่อมีเหตุการณ์ให้ข้อมูลจะเพิ่มขึ้นในระหว่างการตรวจสอบ และการดำเนินการของ onpostexecute
เมื่อปฏิบัติการเสร็จสิ้นปฏิบัติการ
onpostvalidate เมื่อเป็นปฏิบัติการตรวจสอบเป็น onpreexecute สมบูรณ์
onprevalidate ก่อนปฏิบัติการวิ่งก่อนมีการเริ่มปฏิบัติการ
onprogress เมื่อความคืบหน้าที่วัดได้เกิดขึ้นบน
เมื่อ onquerycancel ประมวลผลแบบสอบถาม ได้รับคำสั่งให้ยกเลิก
ontaskfailed เมื่องานล้มเหลว
onvariablevaluechanged เมื่อตัวแปรเปลี่ยนไทม์
onwarning เมื่อการเตือนเกิดขึ้นในตัวจัดการเหตุการณ์แพคเกจ
ของคุณมีความสำคัญต่อการพัฒนาแพคเกจที่เป็น " ด้วยตนเอง " - คือ
สามารถแก้ไขปัญหาของตนเองเหตุการณ์สําคัญในการจัดการเป็น onerror onwarning onpreexecute
, , , และ onpostexecute . คุณจะได้เรียนรู้เพิ่มเติมเกี่ยวกับตัวจัดการเหตุการณ์ในบทที่ 18
แท็บ Explorer ชุดสุดท้ายใน SSIS แพ็คเกจออกแบบ
เป็นแพคเกจ Explorer ในแท็บที่แสดงในรูปที่ 2-26
. แท็บนี้รวมบานทั้งหมด
ออกแบบในมุมมองเดียว และรายการทั้งหมด
งาน , การเชื่อมต่อ , ภาชนะ , เหตุการณ์
ผู้ดูแล ตัวแปรและแปลงข้อมูลในแพคเกจของคุณ
คุณสามารถดับเบิลคลิกที่รายการใด ๆ ที่นี่
ปรับแต่งได้อย่างง่ายดาย นอกจากนี้คุณยังสามารถปรับเปลี่ยน
คุณสมบัติสำหรับรายการในคุณสมบัติ
หน้าต่างด้านขวาหลังจากเลือกรายการที่คุณต้องการปรับเปลี่ยน
.
แท็บนี้จะเป็นประโยชน์ถ้าคุณมีงานที่
คือโยนข้อผิดพลาดและคุณหาไม่เจอ
เพื่อลบหรือแก้ไข ปัญหานี้เกิดขึ้น
บางครั้งเมื่อคุณมีงานที่เผลอตกลงมา คอนเทนเนอร์ หรืองานอื่น
การแปล กรุณารอสักครู่..
