Link to home
Start Free TrialLog in
Avatar of SQLSearcher
SQLSearcher

asked on

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
Avatar of YZlat
YZlat
Flag of United States of America image

did you try using ActiveX Script task?
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
Avatar of SQLSearcher
SQLSearcher

ASKER

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
I am using 2008 and it is there. Perhaps it got removed in 2012. Let me check
SOLUTION
Avatar of YZlat
YZlat
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello YZlat
I see Execute Process task but it will not run my VBS script file.

Regards

SQLSearcher
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
My solution has part of the answer.