Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3645
  • Last Modified:

SSIS to run a VBS script

Hello Experts Exchange
I have a VBS script that will open a Excel spreadsheet run a macro and the close the file.  I want to be able to run the VBS file within a SSIS package, I have tried to run it with the Execute Process Task but this did not work.

Can you tell me in step by step instructions how I can get my VBS to work in SSIS please?

Regards

SQLSearcher
0
SQLSearcher
Asked:
SQLSearcher
  • 5
  • 4
2 Solutions
 
YZlatCommented:
did you try using ActiveX Script task?
0
 
YZlatCommented:
Drag and drop ActiveX Script task, double-click the task, in Script part specify language property as VBScript and in script property click on a 3 dot button and copy and paste your VBScript code there.When you run it, most likely you will get an error that DTS 2000 is not installed. Install it following directions here

http://msdn.microsoft.com/en-us/library/ms143755.aspx
0
 
SQLSearcherAuthor Commented:
Hello YZlat
I can not see ActiveX Script task in my SSIS Toolbox, is there something I need to do to make this visible?

I am using SQL Server 2012 Standard edition.

Regards

SQLSearcher
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
YZlatCommented:
I am using 2008 and it is there. Perhaps it got removed in 2012. Let me check
0
 
YZlatCommented:
Do you see Execute Process task?
0
 
SQLSearcherAuthor Commented:
Hello YZlat
I see Execute Process task but it will not run my VBS script file.

Regards

SQLSearcher
0
 
SQLSearcherAuthor Commented:
Hello YZlat
I was able to run the VBS script when I put it into a Bat file and then used the Execute Process task to run the Bat file and the Bat file to run the VBS script.

Thank you for your help.

Regards

SQLSearcher
0
 
SQLSearcherAuthor Commented:
My solution has part of the answer.
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now