dbTalk Databases Forums  

Kill database connection while running DTS

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


Discuss Kill database connection while running DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Darren Dobier via SQLMonster.com
 
Posts: n/a

Default Kill database connection while running DTS - 03-09-2005 , 02:25 PM






Hello,

I have a DTS package that has a connection defined for a certain database
so that I can run an execute sql task against the database. I then have
another sql task that runs a stored procedure to attempt to restore to the
same database. Due to the previous sql task my restore fails as the
database is still in use from the first sql task. I changed the catalog
for the connection to a separate database before my restore attempts but
DTS still leaves a connection open to the database. Anyway to kill this
connection or to do something so that my database will no longer have this
user executing a process on the database I'm trying to restore?

thanks.

--
Message posted via http://www.sqlmonster.com

Reply With Quote
  #2  
Old   
Simon Worth
 
Posts: n/a

Default Re: Kill database connection while running DTS - 03-09-2005 , 02:34 PM






use "Close Connection on Completion" in workflow properties.

--
Simon Worth


"Darren Dobier via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> wrote

Quote:
Hello,

I have a DTS package that has a connection defined for a certain database
so that I can run an execute sql task against the database. I then have
another sql task that runs a stored procedure to attempt to restore to the
same database. Due to the previous sql task my restore fails as the
database is still in use from the first sql task. I changed the catalog
for the connection to a separate database before my restore attempts but
DTS still leaves a connection open to the database. Anyway to kill this
connection or to do something so that my database will no longer have this
user executing a process on the database I'm trying to restore?

thanks.

--
Message posted via http://www.sqlmonster.com



Reply With Quote
  #3  
Old   
Darren Dobier via SQLMonster.com
 
Posts: n/a

Default Re: Kill database connection while running DTS - 03-09-2005 , 03:07 PM



I can't believe it was that simple. Thanks a lot.

--
Message posted via http://www.sqlmonster.com

Reply With Quote
  #4  
Old   
Simon Worth
 
Posts: n/a

Default Re: Kill database connection while running DTS - 03-09-2005 , 03:20 PM



no problem

--
Simon Worth


"Darren Dobier via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> wrote

Quote:
I can't believe it was that simple. Thanks a lot.

--
Message posted via http://www.sqlmonster.com



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.