Exécuter un tache dans un DTS via script activeX
Bonjour,
Je voudrais pouvoir relancer un DTS lorsqu'il y a finie dans une condition précise.
En gros, via un script active je voudrais la relancer mais coté vb je m'y connais pas trop.
Si ma variable est pas vide ou null je voudrais qu'il lance la tache "DTSTask_DTSExecuteSQLTask_9" et reprend son cycle *_10 > *_11 etc jusqu'à arrivé à nouveau au script ActiveX qui fait recommencer son cycle si ma variable n'est pas vide ou null
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| Function Main()
Dim oPkg
SET oPkg = DTSGlobalVariables.Parent
IF IsEmpty (DTSGlobalVariables("PublishID").Value) OR DTSGlobalVariables("PublishID").Value<>"" then
DTSGlobalVariables.Parent.Tasks("DTSTask_DTSExecuteSQLTask_9").xxx
Main = DTSTaskExecResult_Success
ELSE
Main = DTSTaskExecResult_Failure
END IF
End Function |
Si quelqu'un peut m'aider merci :)
SQLServer2005