Kill only old connections

7000
12
Jump to solution
04-02-2012 07:52 AM
BrentHoskisson
Occasional Contributor III
Is there a way to kill only the SDE connections that are over 24 hours old?
0 Kudos
12 Replies
JamesLandwehr
New Contributor III

Jake, does this mean that if we are using direct connects that your method of deleting old/orphan SID/SPID's at the SQL level is okay? We stop and restart our services every night and from what I can see of the processes, we have a bunch of orphans from yesterday out there in addition to the ones that started this morning. Will running this command clear those out? Thanks.

0 Kudos
BrentHoskisson
Occasional Contributor III
Brent,

It looks like you are connecting to you SDE geodatabase using an ArcSDE service.  Have you considered using a direct connection?  This is usually the recommended way to connect an SDE geodatabase. 



This is an entirely different complaint.  But my users are only using ArcEngine Runtime.  Direct Connect doesn't work (apparently) except with ArcView or better.  So yes, I have tried it - doesn't work - oh well, I'm dealing with it.
0 Kudos
JakeSkinner
Esri Esteemed Contributor
I would follow the KB article then, and set your TCPKEEPALIVE to TRUE.  Remember to restart the ArcSDE service for the changes to take affect.