Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I killed the sleeping sessions which block the other sessions.

Status
Not open for further replies.

cazxd

Technical User
Sep 24, 2002
7
CA
Can I killed the sleeping sessions which block the other sessions.

Recently My SQL server (MS SQL7) is getting slow.
I used the "select * from master..sysprocesses where status = 'sleeping' and dbid >=5"
and found there are hundreds sleeping session, and several session block the other session.
So I killed those sleeping session. The server got normal.

But I have been told "this is a total wrong operation, This could corrupt the database or make the system out of balance." Is it right ? why??

Do I need to ask user log off the database, then kill the
session. If the SQL server got very slow, and user can not log off
What can I do?

Can I ask the vender(developer) to revise their code to kill the sleeping session periodly.



Thanks in advance

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top