SQL query log

  • Hello All,

    I m looking for something similar than the MYSQL that I can see in real time the queries that is been running at the back .

    How on SQL server I can be looking on real time all queries that is been executing and what it is

    Example let's imagine that the user has send a request using the GUI to collect the telefone number

    I want to be able to see in the log

    SELECT Tel FROM Contacts or similar

    how Can I do that

  • Use SQL Server Profiler

    Thanks

    SQLBuddy

  • Thanks you are a STAR

  • However you should not use the Profiler GUI to trace a busy production server. It can have an adverse impact on the server's performance. If you're doing long-term traces, use the server-side trace functionality and trace to a file.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • How do I turn on Server side trace and file trace?

  • I found Gail's article to turn on trace.

  • I don't recall having written an article on Trace. Grant wrote one that was published earlier this week and should still be on the front page. Make sure you've read that.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • GilaMonster (12/3/2010)


    I don't recall having written an article on Trace. Grant wrote one that was published earlier this week and should still be on the front page. Make sure you've read that.

    Could be one of those cases where you've forgotten more than some of us will know 😀

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply