SSIS ActiveX Script Task

I'm trying to create a SSIS package and I need to use the ActiveX script task.  However, I do not see the ActiveX Script Task in my list of toolbox items.  How to add this?

I see Script Task, but that is for Visual C# or Visual Basic.  I do not want to convert to Visual C# or Visual Basic.

I'm using Visual Studio Professional 2012 to create a SSIS package for use with MS SQL Server 2014.

Here is a screen shot of my SSIS Toolbox with all the items that I can currently see.

LVL 13
Jeff DarlingDeveloper AnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vikas GargAssociate Principal EngineerCommented:

Activex Script Task component doesn't exist in 2012 version

So if you are migrating your existing project which is using this Activex Script task then you have to rewrite it.

And if you are creating new package then you can use Script Task
Jeff DarlingDeveloper AnalystAuthor Commented:
Not using VBScript is unacceptable.  I have too much code that would need to be re-written.

I came up with my own solution to call a VBScript from a SSIS Package

1. Add a Script Task to the Control Flow

I created a script task that calls a program that then executes a VBScript using parameters for the location of the VBScript File.

2. Add Variables to SSIS Package for VBScript Location

The path and filename are passed to the Script Task.

Script Variables

3. Edit Script for Script Task

public void Main()
			// TODO: Add your code here
            string strScriptPath = Dts.Variables["User::strScriptPath"].Value.ToString();
            string strScriptFile = Dts.Variables["User::strScriptFile"].Value.ToString();
            Process scriptProc = new Process();
            scriptProc.StartInfo.FileName = @"cscript";
            scriptProc.StartInfo.WorkingDirectory = strScriptPath;
            scriptProc.StartInfo.Arguments = "//B //Nologo " + strScriptFile;
            scriptProc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; 

			Dts.TaskResult = (int)ScriptResults.Success;

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeff DarlingDeveloper AnalystAuthor Commented:
workaround for a ActiveX script task in SQL server 2014
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.