Get sql code from sql server profiler?

  • Hi beautiful people,

    Lets say I have no idea how to write a sql code.

    But lets say I am good at managing sql server profiler tool.

    So, is it possible to get sql code from sql server profiler without sql code writing knowledge?

    -------------------------------------------------------------------------------------
    [font="Comic Sans MS"]I am vba expert not SQL. HerryMarkowitz[/font]
    ---------------------------------------------------------------------------------------

  • Yes, providing you use the correct events and have the required access to the server. But don't ever use profiler (the GUI) against a production server, it can cause nasty problems.

    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
  • Hi GilaMonster,

    Thanks for your comment.

    I runned an inventory report from SAP front facade then checked from sql server profiler what was going.

    And see that a lot of lines, all of them includes some codes...

    But I need one line and one sql code.

    Any idea?

    -------------------------------------------------------------------------------------
    [font="Comic Sans MS"]I am vba expert not SQL. HerryMarkowitz[/font]
    ---------------------------------------------------------------------------------------

  • A lot of copy-paste work.

    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

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

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