SQL profiler trace

  • I have trace set up on one of my servers and i am trying to capture what values gets inserted in a tabe when sp_insert_<table> proc runs. What i see in the trace is

    Insert into <table> (col1,col2,col3,col4,col5,col6)

    values @col1,@col2,@col3,@col4,@col5,@col6 . Is there a way i could see whats the values of these variables? what counter needs to be selected in events tab in profiler or is there any other setting that i need to take. Any help on this will be greatly appreciated.

    TIA

  • Think you'll need to use a log reader, or some other tool - maybe Teratrax ( one that I use ), it's not an easy thing to set up to test, sorry. I can't recollect having this problem - select all the sp events.

    [font="Comic Sans MS"]The GrumpyOldDBA[/font]
    www.grumpyolddba.co.uk
    http://sqlblogcasts.com/blogs/grumpyolddba/

  • Set the profiler [ events ] to TSQL:Stmt Completed, and now you can observe the values of variables in the column [TextData] of Trace window.

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

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