Skip to content

Commit

Permalink
Get-DbaProcess: Fix for empty most_recent_sql_handle (dataplat#9375)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan authored Jun 5, 2024
1 parent 0d4a018 commit df5f991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/Get-DbaProcess.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function Get-DbaProcess {
on c.session_id = s.session_id
JOIN sys.endpoints e
ON c.endpoint_id = e.endpoint_id
CROSS APPLY sys.dm_exec_sql_text(c.most_recent_sql_handle) t"
OUTER APPLY sys.dm_exec_sql_text(c.most_recent_sql_handle) t"

if ($server.VersionMajor -gt 8) {
$results = $server.Query($sql)
Expand Down

0 comments on commit df5f991

Please sign in to comment.