Quantcast
Channel: SQL Server Manageability forum
Viewing all articles
Browse latest Browse all 1519

dm_exec_requests.text 8K max size question

$
0
0
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.


Viewing all articles
Browse latest Browse all 1519

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>