Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Can I execute a VBScript from SSIS? Expand / Collapse
Author
Message
Posted Wednesday, July 14, 2010 12:11 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 9, 2014 3:40 PM
Points: 118, Visits: 569
It seems that the only thing I can run is either a C#.Net or VB.Net script. Is there any other way? I'm not allowed full blown access to SSIS so I have BIDS instead. I don't have SSRS so I have to deliver my emails (at the end of my SSIS package) thru a VBScript.
Post #952600
Posted Wednesday, July 14, 2010 12:35 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, October 17, 2013 4:51 PM
Points: 215, Visits: 556
You can use ActiveX script task in Control Flow to write your VB code.. But its not suggested as its being deprecated
Post #952625
Posted Wednesday, July 14, 2010 12:48 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 9, 2014 3:40 PM
Points: 118, Visits: 569
I've never done this before. I currently have a .vbs file I'd like to run at the end of a SSIS package. Do I just drag an ActiveX Script Task onto the IDE and point to it?

Here's what I've tried:
1. dragged an ActiveX Script Task onto the IDE
2. in the 'Script' line I used the Browse button to put my file into the 'Script' line. The actual code now appears on the 'Script' line.
3. I am getting a red X error on my ActiveX Script Task: 'Function not found.'

Am I missing something here?

Oh and btw, hopefully I will be getting the rights to Database Mail and SSRS and I won't have to do things like this in the near future.
Post #952644
Posted Wednesday, July 14, 2010 2:29 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, October 17, 2013 4:51 PM
Points: 215, Visits: 556
I am not much familiar with ActiveX script task. I did use it when migrating from DTS and had the same problem... so slowly changed the code to Vb.net .. It seems that SSIS does not support all the built in VB Functions.. I assume that you will schedule this as a job ... If so, try to execute an SP after this Package in the job to send a mail.. you will be able to find many code snippets to send an Email using SQL
Post #952700
Posted Thursday, July 15, 2010 12:34 PM


Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, November 19, 2014 8:47 PM
Points: 73, Visits: 184
use "Send Mail task" for sending mails or you can use ActiveX script task too

for correcting error in ActiveX script task, you have to enter the entrypoint property

refer attached image, pls


  Post Attachments 
script_entrymethod.jpg (191 views, 40.07 KB)
Post #953405
Posted Thursday, July 15, 2010 1:03 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 9, 2014 3:40 PM
Points: 118, Visits: 569
We don't have the mail client hooked up to this server, that's why I'm having to use a VB Script.

PaVeRa22, your example worked perfectly. This is a whole new world. Until we get full blown SSIS, SSRS, and the mail client installed, this will do nicely. Thanks, again.
Post #953425
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse