To Set the Properties by SSIS Designer:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpZCUpO7TgHrcL2o0JzNoI16Y4XTJY1AXt8eh2WL5JeHsmVlgVCrsMIZSVYPbCv5_7u3IX9N5HpgUVRkyj37V-ZlAiXBbFF08dasFMYzqzAnImi_sVxhNBaeIcRGZh5_lsRS-ZLcVM3cs/s400/Activex+Script+Task.bmp)
- Place "Activex Script Task" on Control Flow Designer From "Contol Flow Items" Tool Box
- double Click on this task
- Activex Script Task Editor will display which contains 3 tabs namely General, Script and Expressions
- In General Tab, We can update the name and Description of the Task, As shown in the Following Figure
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnC39uo8GNHEZk7qQFpeuN4t1A_tkiSGUHKoaPUPrHjn_6PILzUmQpXy8VZi6o-fa_Tzwg8ecidehORXpM_FiL3NHRnVUoD8ePBZuHCUp6NDZrCN7KUv318dq2fHxl64G5TXkP98v-fvM/s400/Activex+Script+Task+-+General+Tab.bmp)
- In Script Tab,
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglboRFPOhcsdGmAYqDkc6EJjhC6iY9kk7WeRoyL_OFZXyDkKChaSPceZqWj2T0a_3M2McjCE5g4RR-ER8XPbHkrD6d48Y2_TH463Kuxsyj9FTTo54ReQsYd_77TSKKfHwLqw2VUd4gz2U/s400/Activex+Script+Task+-+Script+Tab.bmp)
- we can update following details about the script
- language used in script, this will helps to the compiler for compile our code by using to proper language compiler
- script, which will be executed by Activex script Task at run time
- Entry Method, here we need provide a method name which is available in the script (script available in step 2), it is a entry point, from where the script will start executing. it is same as Main() function in C, C++, C#
Next is the Expression Tab, here we can assign the value of the property dynamically by executing some expression, calculation, etc.,
Example Script for Exercise:
Language: VB Script Language
Script:
Function Msg()
Msgbox("Hi")
End Function
Entry Method: Msg
Assign these values in script Tab of this task, then execute
you can the Message box with "Hi" Message.
No comments:
Post a Comment