![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, (Note: I originally posted this in the microsoft.public.dotnet.framework.interop newgroup, but got no response. Thought I'd try here.) I've created a .NET app that executes a DTS package. Everything works great if I pass the appropriate parameters to the application; if I purposely pass an incorrect parameter (such as a bad database server name) it seems that the Execute call on the package goes off into lala-land, and never returns with an error. Here's some of the code I'm using: Public goPackage As DTS.Package2 ... goPackage = New DTS.Package goPackage.Name = "Name" goPackage.Description = "Description" goPackage.WriteCompletionStatusToNTEventLog = True goPackage.FailOnError = True goPackage.PackagePriorityClass = 2 goPackage.MaxConcurrentSteps = 4 goPackage.LineageOptions = 0 goPackage.UseTransaction = True goPackage.TransactionIsolationLevel = 4096 goPackage.AutoCommitTransaction = True goPackage.RepositoryMetadataOptions = 0 goPackage.UseOLEDBServiceComponents = True goPackage.LogToSQLServer = False goPackage.LogServerFlags = 0 goPackage.FailPackageOnLogFailure = False goPackage.ExplicitGlobalVariables = False goPackage.PackageType = 0 ... goPackage.Execute() tracePackageError(goPackage) goPackage.UnInitialize() Has anyone else seen this behavior? Is there a way that I can keep this from occuring? This DTS application will be called by a separate process, and I'd like for that process to receive an error if something goes wrong and a bad parameter is passed. Thanks! Wade |
#3
| |||
| |||
|
|
Have you studied Gert's paper? http://www.sqldev.net/dts/DotNETCookBook.htm "Wade" <wwegner23NOEMAILhotmail.com> wrote in message news:%23vEzsfMqFHA.3724 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Hi all, (Note: I originally posted this in the microsoft.public.dotnet.framework.interop newgroup, but got no response. Thought I'd try here.) I've created a .NET app that executes a DTS package. Everything works great if I pass the appropriate parameters to the application; if I purposely pass an incorrect parameter (such as a bad database server name) it seems that the Execute call on the package goes off into lala-land, and never returns with an error. Here's some of the code I'm using: Public goPackage As DTS.Package2 ... goPackage = New DTS.Package goPackage.Name = "Name" goPackage.Description = "Description" goPackage.WriteCompletionStatusToNTEventLog = True goPackage.FailOnError = True goPackage.PackagePriorityClass = 2 goPackage.MaxConcurrentSteps = 4 goPackage.LineageOptions = 0 goPackage.UseTransaction = True goPackage.TransactionIsolationLevel = 4096 goPackage.AutoCommitTransaction = True goPackage.RepositoryMetadataOptions = 0 goPackage.UseOLEDBServiceComponents = True goPackage.LogToSQLServer = False goPackage.LogServerFlags = 0 goPackage.FailPackageOnLogFailure = False goPackage.ExplicitGlobalVariables = False goPackage.PackageType = 0 ... goPackage.Execute() tracePackageError(goPackage) goPackage.UnInitialize() Has anyone else seen this behavior? Is there a way that I can keep this from occuring? This DTS application will be called by a separate process, and I'd like for that process to receive an error if something goes wrong and a bad parameter is passed. Thanks! Wade |
![]() |
| Thread Tools | |
| Display Modes | |
| |