Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2014
    Posts
    1

    Unanswered: Get tables involved in operation

    Hi

    Say I have app, I want to know when I perform any operation like logging, changing username etc, can I get all the tables involved for that particular operation.

    Thanks
    Vineet

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    sure. run a trace.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Aug 2008
    Posts
    147
    If a trace is not allowed or achievable on the target system - another option is to explore the sys.dm_exec_requests DMV.

    Current queries executing on SQL Server
    ---------------------------------
    www.sqlserver-dba.com
    www.dba-db2.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •