I get the following error when attempting to execute:
exec sp_trace_create @traceid = @traceidout output,
@options = @myoptions,
@tracefile = @mypath,
@maxfilesize = @mymaxfilesize,
@stoptime = @mystoptime,
@filecount = @mymaxRolloverFiles
Msg 137, Level 15, State 2, Line 1
Must declare the scalar variable "@traceidout".