billdvldog
Programmer
- Sep 6, 2001
- 43
Hello all, I am running the xp_cmdshell stored procedure from an asp page to execute a DTS package. The code works fine, but I'd like to know how to display the success or error message returned by the xp_cmdshell procedure to the screen. Basically I need to know how to capture it using VBScript. For example, if I run the procedure with an invalid value for the /G parameter, I get the following error message:
Error: -2147024809 (80070057); Provider Error: 0 (0) Error string: DTSRun: Must specify a value for switch: /G The parameter is incorrect. Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 0
I'd just like to display that on the screen, or display a success message.
Thanks in advance!
Bill
Error: -2147024809 (80070057); Provider Error: 0 (0) Error string: DTSRun: Must specify a value for switch: /G The parameter is incorrect. Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 0
I'd just like to display that on the screen, or display a success message.
Thanks in advance!
Bill