Commit f1b0be8
Fix sql_text lookup for bulk insert operations
COALESCE(sql_handle, plan_handle) so dm_exec_sql_text returns results
when plan_handle is NULL (e.g. bulk inserts). Applied to both the
memory grants and active requests queries.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3a2a23b commit f1b0be8
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3231 | 3231 | | |
3232 | 3232 | | |
3233 | 3233 | | |
3234 | | - | |
| 3234 | + | |
3235 | 3235 | | |
3236 | 3236 | | |
3237 | 3237 | | |
| |||
3929 | 3929 | | |
3930 | 3930 | | |
3931 | 3931 | | |
3932 | | - | |
| 3932 | + | |
3933 | 3933 | | |
3934 | 3934 | | |
3935 | 3935 | | |
| |||
0 commit comments