dbTalk Databases Forums  

Problem with ExecuteSQK Task in SSIS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Problem with ExecuteSQK Task in SSIS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sql guy
 
Posts: n/a

Default Problem with ExecuteSQK Task in SSIS - 01-27-2006 , 12:27 PM






Hi I am writing an app in c# that will create a package and utilise the
executesql task to execute some sql. from these task, i want to trap the
output via a varaible (or any facility available). my code is shown below:

TaskHost thSQLTask = _Package.Executables.Add("STOCK:SQLTask") as TaskHost;
ExecuteSQLTask myExecTask = thSQLTask.InnerObject as
ExecuteSQLTask;

myExecTask.Connection = connectionManegerName;
myExecTask.SqlStatementSource = executableSQLStatement;
myExecTask.SqlStatementSourceType =
SqlStatementSourceType.DirectInput;
myExecTask.ResultSetType = aResultType;
myExecTask.TimeOut = 0;

however, i am not sure how i can get the output of the task since the task
does not expose any property through which i can wireup a variable.

any help please.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.