How can I know what query is executing by by a particural
user? (using sp id or any othe way.)
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / prem
DBCC INputbuffer(spid)- Displays the last statement sent
from a client to an instance of Microsoft SQL Server 2005.
First 256 characters only will be displayed.
SQL statements can also be captured by running a profiler.
Is This Answer Correct ? | 2 Yes | 2 No |
plss anybody specify tha constrian management system in dbms
what are different types of backups available in sql server? : Sql server database administration
What are window functions in sql server?
How to include date and time values in sql statements?
How to write a query with a right outer join in ms sql server?
What is row_number function?
What is the maximum length of an alert name?
What is msdb database? : SQL Server Architecture
What is a filestream?
What is order of B+tree?
How many types of Outer Joins?What are they?
What is transaction server distributed transaction?