Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can I know what query is executing by by a particural
user? (using sp id or any othe way.)

Answer Posted / suvendu

SELECT *
FROM Master.dbo.sysprocesses
WHERE DBID NOT IN (1,2,3,4) -- Master, Tempdb, Model, MSDB
AND spid > 50
ORDER BY spid DESC

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are database states in ms sql server?

1184


What does Master database contains?

1140


What is the distinction amongst delete and truncate?

1071


How to select true false based on column value in sql server?

1037


How do I view a stored procedure in sql server query?

935


Explain how you can deploy an SSRS report?

150


Why use “in” clause in sql server?

1075


What is service broker? : sql server database administration

998


What are key constraints?

977


Insert syudents details in table.Current system date &time insert into joining time.How do insert?( in sysdate only return current system date how do add time?)

1886


What happens if you delete a table that is used by a view?

990


explain declarative management framework (dmf) in sql server 2008?

999


What is the difference between coalesce() & isnull()?

1135


What does it mean to invest in the index?

974


Do I need a report server to run reports in my application?

165