dbTalk Databases Forums  

Error on package

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


Discuss Error on package in the microsoft.public.sqlserver.dts forum.



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

Default Error on package - 04-28-2005 , 07:09 AM






I have a package launched trougth a my program. Sometimes, due to connection
problem with a remote sql server, it hang on a query.
I want from a my application to stop the package.
I did not get error or any exception from the package, nor the OnCancelQuery
is called.
The only way I see to stop excecution is to start the package in a thread
and then if locked call the TerminateThread, but this solution don't like me
for a lot of connected problems.

Any help?

Thanks.



Reply With Quote
  #2  
Old   
Lee Gillie
 
Posts: n/a

Default Re: Error on package - 04-29-2005 , 03:01 PM






Sam -

This OnCancelQuery solution has been problematic for me as well. Fine if
things are running along normally, but having this as the only safe
recourse when you are trying to shut it down due to the fact you have
detected a lock condition (unreasonably long execution time), and you
never receive an OnCancelQuery, coupled with the fact that SQL
documentation seems to suggest that anything more abortive than
OnCancelQuery could lead to database corruption, leaves you in that same
old "close-your-eyes-and-press-the-button-and-pray-for-the-best" mode again.

(grumble) As far as I know the only thing you could do is documented as
being risky. There is no guaranteed clean way of dealing with this that
I have been able to find after studying the issue for many hours. If you
find a way, I would sure be interested in knowing.

- Best regards - Lee Gillie

Sam wrote:
Quote:
I have a package launched trougth a my program. Sometimes, due to connection
problem with a remote sql server, it hang on a query.
I want from a my application to stop the package.
I did not get error or any exception from the package, nor the OnCancelQuery
is called.
The only way I see to stop excecution is to start the package in a thread
and then if locked call the TerminateThread, but this solution don't like me
for a lot of connected problems.

Any help?

Thanks.

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

Default Re: Error on package - 05-02-2005 , 01:40 AM




"Lee Gillie" <Lee (AT) nospam (DOT) odp.com> wrote

Quote:
(grumble) As far as I know the only thing you could do is documented as
being risky. There is no guaranteed clean way of dealing with this that
I have been able to find after studying the issue for many hours. If you
find a way, I would sure be interested in knowing.

- Best regards - Lee Gillie
In my case, I have no problem of data corruption because the step that may
hang the package is the first and is only a copy of data from a remote
database (300 km), if it fail I clean the table and then restart the
package. I can't detect the cause of problem, because till now it have
hanged only the night.

Thanks




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.