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 |
how would you improve etl (extract, transform, load) throughput?
what are user defined datatypes and when you should go for them? : Sql server database administration
Find top Nth employee from each department in terms of salary?
Difeerence between ssis 2005 and ssis2008?
Will sql server 2005 allow you to reduce the size of a column?
Is it possible to allow NULL values in foreign key? I s it possible to use different constraints for the same column in the table (i.e) (id int NOT NULL,UNIQUEUE)
How we can refresh the view?
How to use group functions in the select clause in ms sql server?
What is inline table-value user-defined function?
Explain in brief how sql server enhances scalability of the database system?
Where is SQL Srever (In sQL server 2005/2008 where is SQL Server Located).
plz tell me the new features of sqlserver2000,sqlserver2002,sqlserver2005