Skip to content

Commit

Permalink
more changes for #311
Browse files Browse the repository at this point in the history
  • Loading branch information
VladDBA committed Feb 7, 2025
1 parent f6ccd30 commit fc0138f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Resources/GetInstanceInfo.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Part of PSBlitz - https://github.com/VladDBA/PSBlitz
License - https://github.com/VladDBA/PSBlitz/blob/main/LICENSE
*/
SET ANSI_NULLS ON;
SET ANSI_PADDING ON;
SET ANSI_WARNINGS ON;
SET ARITHABORT ON;
SET CONCAT_NULL_YIELDS_NULL ON;
SET QUOTED_IDENTIFIER ON;
SET NOCOUNT ON;
SET STATISTICS XML OFF;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
Expand Down Expand Up @@ -103,7 +109,7 @@ SELECT @SQL = CASE
+ @LineFeed
+ N'AND [counter_name] LIKE N''Total Server Memory (KB)%'') AS [total_memory_used_GB],'
+ @LineFeed
+ N'(SELECT CAST(COUNT(*) * 8/1024.0/1024.0 AS DECIMAL (15,2))'
+ N'(SELECT CAST(COUNT(*) * 8/1024.0/1024.0 AS DECIMAL (15,2))'
+ @LineFeed
+ N' FROM sys.dm_os_buffer_descriptors WHERE database_id <> 32767) AS [buffer_pool_usage_GB],'
+ @LineFeed
Expand Down
6 changes: 6 additions & 0 deletions Resources/GetStatsInfoForWholeDB.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
/*Stats Info*/
USE [..PSBlitzReplace..];

SET ANSI_NULLS ON;
SET ANSI_PADDING ON;
SET ANSI_WARNINGS ON;
SET ARITHABORT ON;
SET CONCAT_NULL_YIELDS_NULL ON;
SET QUOTED_IDENTIFIER ON;
SET NOCOUNT ON;
SET STATISTICS XML OFF;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
Expand Down

0 comments on commit fc0138f

Please sign in to comment.