Skip to content

Commit

Permalink
SQL Server - SQL Requests - added s.[login_name] (#8351)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trovalo committed May 14, 2021
1 parent 760ad3e commit ae7d319
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/inputs/sqlserver/azuresqlqueries.go
Expand Up @@ -606,6 +606,7 @@ SELECT
,s.[program_name]
,s.[host_name]
,s.[nt_user_name]
,s.[login_name]
,COALESCE(r.[open_transaction_count], s.[open_transaction_count]) AS [open_transaction]
,LEFT (CASE COALESCE(r.[transaction_isolation_level], s.[transaction_isolation_level])
WHEN 0 THEN '0-Read Committed'
Expand Down Expand Up @@ -1143,6 +1144,7 @@ SELECT
,s.[program_name]
,s.[host_name]
,s.[nt_user_name]
,s.[login_name]
,COALESCE(r.[open_transaction_count], s.[open_transaction_count]) AS [open_transaction]
,LEFT (CASE COALESCE(r.[transaction_isolation_level], s.[transaction_isolation_level])
WHEN 0 THEN '0-Read Committed'
Expand Down
1 change: 1 addition & 0 deletions plugins/inputs/sqlserver/sqlserverqueries.go
Expand Up @@ -1063,6 +1063,7 @@ SELECT
,s.[program_name]
,s.[host_name]
,s.[nt_user_name]
,s.[login_name]
,LEFT (CASE COALESCE(r.[transaction_isolation_level], s.[transaction_isolation_level])
WHEN 0 THEN ''0-Read Committed''
WHEN 1 THEN ''1-Read Uncommitted (NOLOCK)''
Expand Down

0 comments on commit ae7d319

Please sign in to comment.