Solved

Using sp_who2

Posted on 2008-10-24
3
222 Views
Last Modified: 2010-04-21
Hi i am using sp-who2 to view the locking on my database, can anyone tell me how it differs from just sp-who?

cheers
0
Comment
Question by:ac_davis2002
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
jmoss111 earned 500 total points
ID: 22795408
sp_who provides:

System process ID.
Status of the process.
Login name of the user.
Name of the user.
If the process is blocked, the SPID of the blocking process.
Database the process is using.
Command currently being executed.

sp_who2 also provides:

Total CPU time of each process.
Total amount of disk reads for each process.
Last time a client called a procedure or executed a query.
Application connected.
0
 

Author Closing Comment

by:ac_davis2002
ID: 31509584
First class thanks very much for your help
0
 
LVL 18

Expert Comment

by:jmoss111
ID: 22797773
You're welcome; thanks for the nice comment.

Jim
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
connection to SQL 2012 error in windows 10 18 49
get count of orders by customer Sql Server table. 3 48
Datatable / Dates ? 4 33
Need split for SQL data 7 50
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how the fundamental information of how to create a table.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question