Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

DB Connection not being killed

$
0
0

Hi,

Something odd is happening to my code for killing a db.  This code is the same I have used with success on other db's, including the one that doesn't seem to be able to kill the connections to. 

My problem is that for some reason, only one of my db's keeps a connection to it even though I have setup a kill connections script in BINs.  This db is on the same server as all the others that don't have an issue with the same script.  If I manually drop the connections to the database on a detach and reattach the db, then run my package the kill database script works.  If I run it again right afterwards it fails to disconnect the connections and gives me this error: 

"failed with the following error: "Only user processes can be killed.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly."

 I have used a few different methods to kill connections thinking it was my outdated SQL2005 script not working with a SQL2008 db but that is not the issue.  How can I track what connection is being kept on a particular db?  There is not difference for this db to the others so I don't know why this one holds the connection that the others don't.

Thanks.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>