Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

ssis packages execution fails while executing it by c#

$
0
0

Hi,

I have created one ssis package on server. Now i want to execute this package using c# code.

I have implemented following code to perform this task:

 string pkgLocation = @"Package.dtsx";
        Package pkg;
        Application app;
        DTSExecResult pkgResults;
        Variables vars;
        app = new Application();


        pkg = app.LoadPackage(Server.MapPath(pkgLocation), null);

        vars = pkg.Variables;
       // vars["MonthInt"].Value = "02";
      //  vars["YearInt"].Value = "2014";




        pkgResults = pkg.Execute();

        foreach (DtsError pkgerror in pkg.Errors)
        {
            string err = "Error Source: " + pkg.Name + ": " + " Description: " + pkg.Description;
            //lblErrorMsg.Visible = true;
          //  lblErrorMsg.Text = err;
        }

        if (pkgResults == DTSExecResult.Success)
        {
            // lblErrorMsg.Visible = true;
            // lblErrorMsg.Text = "Package ran successfully in " + count;
        }
        else
        {
        } 

But all the time it gets fail.

Its giving me following error in DTSError:

'To run a SSIS package outside of Business Intelligence Development Studio you must install Standard Edition of Integration Services or higher.'

Can you please guide me how can i resolve this issue.

Is it necessary to install SSIS standard edition on all client machine.

PLease help.

Thanks in advance!

Regards

Rajni

                                           

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>