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 to invoke a trigger on demand?
What does truncate do?
what is hash table
What is the sql server 2000 version number?
What is 2nf normalization?
can a database be shrunk to 0 bytes, if not, why? : Sql server administration
what's the difference between a primary key and a unique key? : Sql server database administration
How to create database with physical files specified in ms sql server?
What are triggers? How do you invoke a trigger on demand?
Tell me what is log shipping?
i have account table which consists of account name,card no and card no consists 16 digits now i want to retrieve the data if card no starts from 4 then it should print visa and if it starts from 5 then it should print master so plse help me to write simple query with out store procs .
Explain various data region available in ssrs with their use?