dbTalk Databases Forums  

DTS datapumptask2 Pleeease Help me !!!

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


Discuss DTS datapumptask2 Pleeease Help me !!! in the microsoft.public.sqlserver.dts forum.



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

Default DTS datapumptask2 Pleeease Help me !!! - 07-08-2003 , 07:37 AM






Hi,
I have a simple dts job on sql2000.
I can execute the dts job through asp.net fine using the
following.
Dim newpackage As dts.Package
newpackage = New dts.Package()
newpackage.LoadFromSQLServer("ELTHNTW04\EMS", , ,
DTSSQLServerStorageFlags.DTSSQLStgFlag_UseTrustedC onnectio
n, , , , "dtsexport")
newpackage.Execute()
newpackage.UnInitialize()
newpackage = Nothing


what I am trying to use is the rowscomplete property of
the datapumptask2 object.
How do I use this in conjunction with the dts package.
I'm looking for a simple example if anyone can help.
Kind regards,

Constantinos


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS datapumptask2 Pleeease Help me !!! - 07-09-2003 , 01:10 AM






The quickest example I have to hand is from VBScript within a package
Note the package reference is the set PKG statement. I assign the values of
the RowsComplete etc to GVs

Function Main()

dim PKG
dim pmp


set PKG = DTSGlobalVariables.Parent

set tsk = PKG.Tasks("DTSTask_DTSDataPumpTask_1").CustomTask

DTSGlobalVariables("RowsGood").Value = tsk.RowsComplete
DTSGlobalVariables("RowsBad").Value = tsk.RowsInError


Main = DTSTaskExecResult_Success
End Function

--


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Constantinos" <cflorides (AT) elthion (DOT) com> wrote

Quote:
Hi,
I have a simple dts job on sql2000.
I can execute the dts job through asp.net fine using the
following.
Dim newpackage As dts.Package
newpackage = New dts.Package()
newpackage.LoadFromSQLServer("ELTHNTW04\EMS", , ,
DTSSQLServerStorageFlags.DTSSQLStgFlag_UseTrustedC onnectio
n, , , , "dtsexport")
newpackage.Execute()
newpackage.UnInitialize()
newpackage = Nothing


what I am trying to use is the rowscomplete property of
the datapumptask2 object.
How do I use this in conjunction with the dts package.
I'm looking for a simple example if anyone can help.
Kind regards,

Constantinos




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.