Link to home
Start Free TrialLog in
Avatar of crishna1
crishna1Flag for United States of America

asked on

SP_WHO2

Hi,
When SP_who2 is run,can it get the data from two weeks back or how is the time period determined?
is there a way to control the reult set time period? what does status RUNNABLE and Commands-- TASK Manger,AWAITING COMMAND,CHECKPOINT SLEEP mean?
Avatar of crishna1
crishna1
Flag of United States of America image

ASKER

Alos, by running sp_who or sp_who2 has a chance of corrupting the database , is that true?
i found the answers for various stages in status i asked in my question, now i need to know,
1)When SP_who2 is run,can it get the data from two weeks back or how is the time period determined?
2)by running sp_who or sp_who2 these is a chance of corrupting the database , is that true??
Avatar of Vitor Montalvão
Answer for your questions:
1) Those SP's gives you a snapshot of the moment you execute them. It's always about the present so you can't have data from a determined period.
2) False. Those SP's wouldn't corrupte databases. No chances at all for that.
on question #1
how far back does it go and how is the time period based on or determined?  when i execute SP_WHO2 on one of my servers i see login/SPID's from 4-5 months back.
ASKER CERTIFIED SOLUTION
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial