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
What is pessimistic concurrency?
what is denormalization? : Sql server database administration
How to grant a permission in ms sql server using "grant execute" statements?
What is a deadlock and what is a live lock?
What is an indexing technique?
How to call a function from a stored procedure in SQL Server ?
ow to bring suspect mode datbase online from scratch
What is table value parameters (tvp)?
What are the results of running this script?
What is subquery? Explain the properties of a subquery?
What happens to a trigger with multiple affected rows?
What is the difference between getdate and sysdatetime?
What are the different type of replication in sql server?
What are user-defined functions (udfs) in sql server?
Mention the differences between local and global temporary tables.