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!

How to find which query is executing

Status
Not open for further replies.

indoaryaan

IS-IT--Management
Nov 19, 2003
26
US
I have nText and DateTime columns in a table. A stored procedure updates the nText col for X number of users. The stored procedure does NOT query the DateTime column. But for few users, only some records(not all records), the DateTime column is being set to NULL. Clearly, a trigger is being fired sometime during the execution of the SP causing the NULL update on DateTime col. Is there a way, i can find which query(Trigger) is causing this during the execution of the main SP? Any help wpuld be appreciated. A sample script would be great....

Thanks....
 
Try running SQL profiler. YOu can display the start and completion of all tsql statements as they execute.

"Shoot Me! Shoot Me NOW!!!"
- Daffy Duck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top