![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
#12
| |||
| |||
|
|
Hello Tim, Russell has good advice. *You also asked about returning an error. *To where? I have never tried to execute a package from within a stored procedure, but when I execute a package from a SQL Agent job using DTSRUN, the job will report failure when there is a failure within DTS. *So, perhaps on the next line following your DTSRUN, you could check @@ERROR for success/failure. Likewise you could throw an exception up the call chain back to your ASP page. In addition, you can capture your DTS execution in a log file. *In the designer window, right-click on an empty space & choose "package properties". In the logging tab, you can log to either SQL server or to an error file. For simplicity, I log to Error File by providing a path to a text file. Fair Warning: *Logging appends data to the file for each run, so you'llneed some outside process to empty it from time to time. Let us know how you make out. Regards, Tom Thomas Bradshaw Data Integration Services MyWebGrocer -- Message posted via SQLMonster.comhttp://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-dts/200901/1 |
![]() |
| Thread Tools | |
| Display Modes | |
| |