have been trying to find a way to get the sql text, for queries larger than 8k...currently I use...'cross apply
sys.dm_exec_sql_text(r.sql_handle)'...the normal stuff...it is returning text strings just fine. But not all active spid are being returned. If I change the 'cross apply' to 'outer apply' on the dm_exec_sql_text(r.sql_handle) bit above...I get more rows from the query (more like sp_who2)...but the text port of results is empty!? My understanding is this due to internal caching constraint of 8K...
is there some other way to view a query > 8K? Have been reading bunches of blogs...but nothing addresses this need...
thanks in advance.
mike t.