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 |
Explain comment on transactions?
Give an example of why you would want to denormalize a database
If we delete pack Spec what will be the status of pack Body ?
how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration
When do you create cluster and noncluster index?
what are defaults? Is there a column to which a default can't be bound? : Sql server database administration
What is log in sql server?
Does any body please help me what question's have asked for SSRS in the interview?
What is the native system stored procedure to execute a command against all databases?
What is difference between table aliases and column aliases? Do they affect performance?
What are the differences between local and global temporary tables?
what is denormalization? : Sql server database administration
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)