dbTalk Databases Forums  

DTS Pack failure

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


Discuss DTS Pack failure in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jörg Harnisch
 
Posts: n/a

Default DTS Pack failure - 08-19-2010 , 05:54 AM






Hallo NG,

ich habe einige DTS Packete die manuell ausgeführt prima funktionieren. Nun
habe ich eine Consolenanwendung mit vbexpress versucht und dort endet die
Prozedur immer mit "Failure" ohne genauere Angaben.

Code:
Sub Part01()
Dim pkgLocation As String
Dim pkg As New Package
Dim app As New Application
Dim pkgResults As DTSExecResult

pkgLocation = "E:\SQL_DTS\TFI_Buchung_POS.dtsx"
pkg = app.LoadPackage(pkgLocation, Nothing)
pkgResults = pkg.Execute()
If pkgResults.ToString() = "Success" Then
Erg = "Part01 erfolgreich " & Now()
Else
Erg = "Part01 fehlgeschlagen " & Now() & " " &
pkgResults.ToString
End If
ErgSchreiben()
End Sub

Kann mir hier jemand helfen?
Gruß Jörg

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.