![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Thank you for the quick response earlier, but I'm still having a little trouble. My DTS Package has a Transform Data Task (TDT) between two |
|
The package is executed from VB code. Tearing my hair out. Much obliged |
#3
| |||
| |||
|
|
Thanks for the previous replies, do these properties for my package object look ok for failing the transaction if the deletion task fails. 'Set the properties for the package. With goPackage .Name = "DataTransferTo400" .Description = "Data Transfer To AS 400" .WriteCompletionStatusToNTEventLog = False .FailOnError = True .PackagePriorityClass = 2 .MaxConcurrentSteps = 4 .LineageOptions = 0 .UseTransaction = True .TransactionIsolationLevel = 4096 .AutoCommitTransaction = True .RepositoryMetadataOptions = 0 .UseOLEDBServiceComponents = True .LogToSQLServer = False .LogServerFlags = 0 .FailPackageOnLogFailure = False .ExplicitGlobalVariables = False .PackageType = 0 'If there's an error then log it to this file. .LogFileName = "C:\Development Projects\DTS Error Logs\DTSErrorLog.txt" End With and these for my step object : Set oStep = goPackage.Steps.New 'Set the properties With oStep .Name = "DTSStep_DTSExecuteSQLTask_1" .Description = "Delete the buffer" .ExecutionStatus = 1 .TaskName = "DTSTask_DTSExecuteSQLTask_1" .CommitSuccess = False .RollbackFailure = True .ScriptLanguage = "VBScript" .AddGlobalVariables = True .RelativePriority = 3 .CloseConnection = False .ExecuteInMainThread = False .IsPackageDSORowset = False .JoinTransactionIfPresent = False .DisableStep = False .FailPackageOnError = True End With Much obliged Allen |
#4
| |||
| |||
|
|
Hi, Thank you for the quick response earlier, but I'm still having a little trouble. My DTS Package has a Transform Data Task (TDT) between two connections, i then have an Execute SQL Task (EST) to delete the records in the source table if the TDT is successful, but i can't figure out how to stop the TDT if the EST doesn't manage to delete the contents of the table, the TDT still sends the records and then sends them again in 10 mins when it executes again, but the EST isn;t always successful, the table is sometimes locked for the input of new records. The package is executed from VB code. Tearing my hair out. Much obliged |
#5
| |||
| |||
|
|
Please note that i am using MSDE on Microsoft XP machine. "Gary Spence" wrote: Hi, Thank you for the quick response earlier, but I'm still having a little trouble. My DTS Package has a Transform Data Task (TDT) between two connections, i then have an Execute SQL Task (EST) to delete the records in the source table if the TDT is successful, but i can't figure out how to stop the TDT if the EST doesn't manage to delete the contents of the table, the TDT still sends the records and then sends them again in 10 mins when it executes again, but the EST isn;t always successful, the table is sometimes locked for the input of new records. The package is executed from VB code. Tearing my hair out. Much obliged |
![]() |
| Thread Tools | |
| Display Modes | |
| |