473,385 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

sysprocesses

js
Hi everyone,

I'm a bit new til ms sql server and hope that anyone here can answer a
question I have. I'm running a ms sql server 7.0. The server is
accessed by a application written in Access (help..) and sometimes I
experience that the server performance is slowing down. When I do a
sp_who I find alot of the processes (or sids) with the status
sleeping? Can anyone please tell med what this means, and is it ok for
me to kill these processes? Since this is happening quite often I
would like to make a script that automatically kills all sleeping
processes, is this ok?
Looking forward to hearing from anyone!

B'reg
Sql server newbee
Jul 20 '05 #1
2 5427

"js" <jo******@start.no> wrote in message
news:52**************************@posting.google.c om...
Hi everyone,

I'm a bit new til ms sql server and hope that anyone here can answer a
question I have. I'm running a ms sql server 7.0. The server is
accessed by a application written in Access (help..) and sometimes I
experience that the server performance is slowing down. When I do a
sp_who I find alot of the processes (or sids) with the status
sleeping? Can anyone please tell med what this means, and is it ok for
me to kill these processes? Since this is happening quite often I
would like to make a script that automatically kills all sleeping
processes, is this ok?
That would probably be counter productive.

Better off looking at any blocking processes.

Looking forward to hearing from anyone!

B'reg
Sql server newbee

Jul 20 '05 #2

"js" <jo******@start.no> wrote in message
news:52**************************@posting.google.c om...
Hi everyone,

I'm a bit new til ms sql server and hope that anyone here can answer a
question I have. I'm running a ms sql server 7.0. The server is
accessed by a application written in Access (help..) and sometimes I
experience that the server performance is slowing down. When I do a
sp_who I find alot of the processes (or sids) with the status
sleeping? Can anyone please tell med what this means, and is it ok for
me to kill these processes? Since this is happening quite often I
would like to make a script that automatically kills all sleeping
processes, is this ok?
Looking forward to hearing from anyone!

B'reg
Sql server newbee


A sleeping process is necessarily not a problem, as it simply means the
process is idle or waiting for something. The possible values for status
aren't documented, although there is a bit of information in Books Online
under KILL. If you have performance problems you should probably look for
blocking processes instead of sleeping ones - sp_who2 and sp_lock can help
you see if any processes are blocked, and which objects are locked. Profiler
can also help identify long-running queries which may need to be tuned.

Simon
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: kr | last post by:
I am trying to find a select on sysprocesses that would list all the active logins. An active login is a login that has a TSQL statment being executed on the server, This didnt work to well!...
4
by: Tim Morrison | last post by:
SQL Server 2000 - MSDE 2000 Is there a way to get the number of current users logged into a SQL 2000 Server (also MSDE)? Cant be distinct users as most users are logged into the database using the...
19
by: Thue Tuxen Sørensen | last post by:
Hi everybody ! I´m maintaining a large intranet (approx 10000 concurrent users) running on one IIS box and one DB box with sqlserver 2000. Currently there is 2,5 GB Ram, 1 1400 mhz cpu and 2...
1
by: MM | last post by:
I currently have a trigger on a table which works fine. It performs some audit trail functions. ****************************************************** CREATE TRIGGER trg_1 ON .&nbsp; ...
1
by: Dave | last post by:
I was trying to find the bottle neck on our server while we were running a couple very large updates. I ran the following query and noticed there were a couple sleeping spid's that were really...
1
by: Kartic | last post by:
Hi, I have created an application in vb.net using SQL Server 2000 database . What I want is to restrict users to access the application more than once, from the same computer or from any other...
1
by: Dmitri | last post by:
Hi! I have a stored procedure that takes 22 minutes to run in one environment, that only takes 1 sec or so to run in another environment. Here is the exact situation: Database 1 on Server 1...
2
by: kai | last post by:
Hi, I use VB 2008 as front end, SQL Server 2005/2008 as back end, I want control number of cucurrent users log on to the database, I am trying to use a stored procedure, but it did not work. Is...
1
by: Richard | last post by:
I need a user to have access to track all processes logged into our SQL Server. In other words, I need them to be able to query master.dbo.sysprocesses. I've already written the query they'll use,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.