dbTalk Databases Forums  

How can I get the DTS error when I code ASP page?

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


Discuss How can I get the DTS error when I code ASP page? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kevin
 
Posts: n/a

Default How can I get the DTS error when I code ASP page? - 07-08-2004 , 10:54 PM






Hi
How can I get the DTS detail error information? Is
there any method of function like GetExecutionErrorInfo in
VB? I got the "Package failed because
Step 'DTSStep_DTSDataPumpTask_1' failed. -2147220440"
error. But I don't know why. the err.Description doesn't
work fot it.
Any suggestion?

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: How can I get the DTS error when I code ASP page? - 07-09-2004 , 05:10 AM






You cannot use GetExecutionErrorInfo from ASP, or any of the common script
languages, as they do not support strong types.
GetExecutionErrorInfo uses ByRef parameters which only work when passed the
exact type, hence you need VB or similar.

Use a COM component for example. Sample available here-
Execute a package from Active Server Pages (ASP)
(http://www.sqldts.com/default.aspx?207)


--
Darren Green
http://www.sqldts.com

"kevin" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi
How can I get the DTS detail error information? Is
there any method of function like GetExecutionErrorInfo in
VB? I got the "Package failed because
Step 'DTSStep_DTSDataPumpTask_1' failed. -2147220440"
error. But I don't know why. the err.Description doesn't
work fot it.
Any suggestion?



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.