dbTalk Databases Forums  

Task Execution

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


Discuss Task Execution in the microsoft.public.sqlserver.dts forum.



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

Default Task Execution - 11-17-2003 , 03:06 PM






Hi,
Can any body help me out how to execute a single task in
dts package through programetically. I tried with the
method

object.Execute pPackage, pPackageEvents, pPackageLog,
pTaskResult

but iam unable to do it.


Thanks in advance
Sreedhar.



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Task Execution - 11-18-2003 , 05:06 PM






In article <040101c3ad4e$a676e550$a301280a (AT) phx (DOT) gbl>, sree
<aithasri (AT) mailcity (DOT) com> writes
Quote:
Hi,
Can any body help me out how to execute a single task in
dts package through programetically. I tried with the
method

object.Execute pPackage, pPackageEvents, pPackageLog,
pTaskResult

but iam unable to do it.


Thanks in advance
Sreedhar.

It is useful if you can gives us the details of the error, and perhaps
even a sample of what raised the error. I guess in this case you
parameters are wrong.

Try something like this-

oTask.Execute oPkg, Nothing, Nothing, CLng(0)


I strongly advise against using this method. For a nice long thread on
the subject including an example try-


http://tinyurl.com/vl48

http://tinyurl.com/vl4c

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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.