dbTalk Databases Forums  

Error Handling in DTS

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


Discuss Error Handling in DTS in the microsoft.public.sqlserver.dts forum.



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

Default Error Handling in DTS - 06-11-2004 , 06:35 AM






Hi All,

How can we handle / know the errors occured with in the DTS Package?

Also Can we Return/Retrieve any Value (say the final value of a Gloabl
Variable after the package is executed) to the Caller Program, Like a Stored
procedure?

Any Suggestion or Web Site for reference.

Thanks in Advance
Prabhat





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

Default Re: Error Handling in DTS - 06-11-2004 , 07:12 AM







There are two logging options, to a SQL server or to a file for packages as
a whole.
Any executing program should really also check the results and expose this
correctly.
I would also suggest you code defensively, and check potential error
conditions before they are hit.

If using the OLE stored procedures to call the package from T-SQL then it is
possible to read global variables out after execution.
You could also write any values you want to and external location from
within the package.

Darren Green
www.sqldts.com

"Prabhat" <not_a_mail (AT) hotmail (DOT) com> wrote

Quote:
Hi All,

How can we handle / know the errors occured with in the DTS Package?

Also Can we Return/Retrieve any Value (say the final value of a Gloabl
Variable after the package is executed) to the Caller Program, Like a
Stored
procedure?

Any Suggestion or Web Site for reference.

Thanks in Advance
Prabhat







Reply With Quote
  #3  
Old   
Prabhat
 
Posts: n/a

Default Re: Error Handling in DTS - 06-11-2004 , 07:43 AM



Hi Darren,

Thanks for your reply. If I am using OLE Stored Procedure then and also Set
the Global Varibales in the package before I execute.

But can u give me an example to Retrive the Value of a Gloabl Var after the
Package is execute successfully?

Thanks
Prabhat

"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote

Quote:
There are two logging options, to a SQL server or to a file for packages
as
a whole.
Any executing program should really also check the results and expose this
correctly.
I would also suggest you code defensively, and check potential error
conditions before they are hit.

If using the OLE stored procedures to call the package from T-SQL then it
is
possible to read global variables out after execution.
You could also write any values you want to and external location from
within the package.

Darren Green
www.sqldts.com

"Prabhat" <not_a_mail (AT) hotmail (DOT) com> wrote in message
news:%23VMI8g6TEHA.3664 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Hi All,

How can we handle / know the errors occured with in the DTS Package?

Also Can we Return/Retrieve any Value (say the final value of a Gloabl
Variable after the package is executed) to the Caller Program, Like a
Stored
procedure?

Any Suggestion or Web Site for reference.

Thanks in Advance
Prabhat









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.