dbTalk Databases Forums  

DTS hangs

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


Discuss DTS hangs in the microsoft.public.sqlserver.dts forum.



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

Default DTS hangs - 03-28-2005 , 09:10 AM






Hi,

I have created a VB program to perform DTS tasks for data transfer from
ACCESS database to SQL Server. The DTS are created by saving the actual DTS
packages as VB file and used those bas files in VP app to run the DTS
programmatically.
The process works fine most of the time.
But occassionally the DTS process is getting locked. The two connections
from the DTS package to SQL server database gains DB lock on the database
and so the process does not go further .
Can any body know why this is happenning?
what could be the solution for this problem?
please help.

thanks
Sam



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS hangs - 03-29-2005 , 02:04 PM






You would be better off creating the packages as Structured Storage files and calling them through the object model.

Are you trying to access the same object in the tasks that use these connections? Is one connection a copy of the other?
What do the tasks do that are getting locked.?

Can you put workflow into the design to make things execute in the right order?

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Sam" <samirsoni (AT) hotmail (DOT) com> wrote

Quote:
Hi,

I have created a VB program to perform DTS tasks for data transfer from ACCESS database to SQL Server. The DTS are created by
saving the actual DTS packages as VB file and used those bas files in VP app to run the DTS programmatically.
The process works fine most of the time.
But occassionally the DTS process is getting locked. The two connections from the DTS package to SQL server database gains DB lock
on the database and so the process does not go further .
Can any body know why this is happenning?
what could be the solution for this problem?
please help.

thanks
Sam




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

Default Re: DTS hangs - 03-31-2005 , 10:21 AM



Hi Guys,

Thank you Allan.

I tried to understand your response and tried to find out if i am trying to
access same object in the tasks but I am not.
But I reviewed your www.SQLDTS.com site and that show me the path for the
solution..
I was using VB to run the DTS package and not SQL SERVER it self.
So the diff between the aprtment threaded process and free threaded process
was causing the problem.
I set my steps to execute in main thread and it resolved the issue.

Thank you for pointing me the right direction.

Sam

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
You would be better off creating the packages as Structured Storage files
and calling them through the object model.

Are you trying to access the same object in the tasks that use these
connections? Is one connection a copy of the other?
What do the tasks do that are getting locked.?

Can you put workflow into the design to make things execute in the right
order?

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Sam" <samirsoni (AT) hotmail (DOT) com> wrote in message
news:eTNw3B6MFHA.1268 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Hi,

I have created a VB program to perform DTS tasks for data transfer from
ACCESS database to SQL Server. The DTS are created by saving the actual
DTS packages as VB file and used those bas files in VP app to run the DTS
programmatically.
The process works fine most of the time.
But occassionally the DTS process is getting locked. The two connections
from the DTS package to SQL server database gains DB lock on the database
and so the process does not go further .
Can any body know why this is happenning?
what could be the solution for this problem?
please help.

thanks
Sam






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.