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

C# direct call to SLQ Server 2014 SSIS DTSX Package Script Task - can't pass parameters

$
0
0

Hi All,

Using a C# ASP.NET web page, I cant successfully execute an SSIS script task to send an email using a  direct call to SLQ Server 2014 SSIS DTSX Package Script Task.

When I change the C# to pass a  in a date variable  the 'Execute' fails on permissions and parameter not defined (if Object type = 20) and timeouts (ObjectType = 30).

Here is the code snippet for defining the parameter and the execute command:

string DateToRun = "2016-12-16";

executionParameter.Add(new IntegrationServicesThis.PackageInfo.ExecutionValueParameterSet { ObjectType = 30, ParameterName = "DateToRun", ParameterValue = DateToRun }); // was 20

long executionIdentifier = ssisPackage.Execute(false, null, executionParameter);

In general terms, how can I get this working?

The Package allows Variables and Parameters to be set. How can I make certain the web page C# parameter is being picked up in the script task C#?



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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