Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Users SQL Statement

Status
Not open for further replies.

CliveW

Technical User
Aug 19, 2002
36
GB
I know that this is a daft request, its just that I can't for the live of me remember how to view the last sql statement a user performed using t'sql.

Could anyone please put me out of my missery.
 
You could go to Enterprise Mgr and goto current activity window, double click on the SPID.
Or you could look at the Log using a utility like 'Log Explorer' hope it helps
TK
 
Look at DBCC INPUTBUFFER in the BOL.

Syntax:
DBCC INPUTBUFFER (spid)

-SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top