Easiest way to start and read a trace from within a SSIS package

I'm trying to gather information from within a SSIS package for benchmarking, reconciliation, and reporting purposes in regards to cube processing, which I'm initiating using the AS processing task.

What is the easiest way to capture this information

The only way I've been able to come up with is to use a profiler trace. If this is really the only way, what is the easiest way to execute and read the trace from within SSIS

Also, if a script task has to be used, does anyone have a code sample

Thanks in advance!


Answer this question

Easiest way to start and read a trace from within a SSIS package

  • Jimmyusa

    Thanks for the help! It looks like that may work. I'll give it a shot.

    Thanks again.

  • ybkang

    Simplest way is to read the trace into SQL server. You can use the fn_trace_gettable to either populate a new table or return the data to SSIS by using an OLEDB source

    see BOL ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/c2590159-6ec5-4510-81ab-e935cc4216cd.htm



  • Easiest way to start and read a trace from within a SSIS package