Skip to content

Commit

Permalink
CDC and CT + SQL Base
Browse files Browse the repository at this point in the history
Commits on Nov 8, 2019 3175f65d23e6536d3a088e2988be9e2e75839ac8
Commits on Jul 24, 2017 1ed203f98e3e4b59913b9329b23e23b122a6ad15

Co-Authored-By: gambit9009 <[email protected]>
  • Loading branch information
PiJoCoder and gambit9009 committed May 12, 2021
1 parent 087c0c0 commit 66421bb
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 40 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" standalone="yes"?>
<CustomTasks>
<CustomTask enabled="true" groupname="Change Data Capture" taskname="Change Data Capture" type="TSQL_Script" point="Startup" wait="No" cmd="ChangeDataCapture.sql" pollinginterval="0" />
<CustomTask enabled="true" groupname="Change Data Capture" taskname="Change Data Capture" type="TSQL_Script" point="Shutdown" wait="Yes" cmd="ChangeDataCapture.sql" pollinginterval="0" />
<CustomTask enabled="true" groupname="Change Data Capture" taskname="ChangeDataCapture.sql" type="TSQL_Script" point="Startup" wait="Yes" cmd="ChangeDataCapture.sql" pollinginterval="0" />
<CustomTask enabled="true" groupname="Change Data Capture" taskname="ChangeDataCapture.sql" type="TSQL_Script" point="Shutdown" wait="OnlyOnShutdown" cmd="ChangeDataCapture.sql" pollinginterval="0" />
</CustomTasks>
4 changes: 2 additions & 2 deletions DiagManager/CustomDiagnostics/Change Tracking/CustomDiag.XML
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" standalone="yes"?>
<CustomTasks>
<CustomTask enabled="true" groupname="Change Tracking" taskname="Change Tracking" type="TSQL_Script" point="Startup" wait="No" cmd="Change_Tracking.sql" pollinginterval="0" />
<CustomTask enabled="true" groupname="Change Tracking" taskname="Change Tracking" type="TSQL_Script" point="Shutdown" wait="Yes" cmd="Change_Tracking.sql" pollinginterval="0" />
<CustomTask enabled="true" groupname="Change Tracking" taskname="Change_Tracking.sql" type="TSQL_Script" point="Startup" wait="Yes" cmd="Change_Tracking.sql" pollinginterval="0" />
<CustomTask enabled="true" groupname="Change Tracking" taskname="Change_Tracking.sql" type="TSQL_Script" point="Shutdown" wait="OnlyOnShutdown" cmd="Change_Tracking.sql" pollinginterval="0" />
</CustomTasks>
11 changes: 8 additions & 3 deletions DiagManager/CustomDiagnostics/SQL Base/MiscPssdiagInfo.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ insert into #summary select 'number of active profiler traces',count(*) 'cnt' fr
insert into #summary select 'suser_name() default database name',default_database_name from sys.server_principals where name = SUSER_NAME()

insert into #summary select 'VISIBLEONLINE_SCHEDULER_COUNT' PropertyName, count (*) PropertValue from sys.dm_os_schedulers where status='VISIBLE ONLINE'
insert into #summary select 'UTCOffset_in_Hours' PropertyName, cast( datediff (MINUTE, getutcdate(), getdate()) / 60.0 as decimal(10,2)) PropertyValue


declare @cpu_ticks bigint
select @cpu_ticks = cpu_ticks from sys.dm_os_sys_info
Expand Down Expand Up @@ -430,6 +432,11 @@ print '-- sys.dm_database_encryption_keys --'
select database_id, encryption_state from sys.dm_database_encryption_keys
print ''

go

print '-- sys.dm_tran_persistent_version_store_stats --'
select * From sys.dm_tran_persistent_version_store_stats
print ''
go
/*
--windows version from @@version
Expand All @@ -443,8 +450,6 @@ print '--profiler trace summary--'
SELECT traceid, property, CONVERT (varchar(1024), value) AS value FROM :: fn_trace_getinfo(default)

go
--we need the space for import
print ''
print '--trace event details--'
select trace_id,
status,
Expand Down Expand Up @@ -499,4 +504,4 @@ go
print ''
print '--XEvent Session Details--'
select sess.name 'session_name', event_name from sys.dm_xe_sessions sess join sys.dm_xe_session_events evt on sess.address = evt.event_session_address
print ''
print ''
10 changes: 0 additions & 10 deletions DiagManager/DiagManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -1659,16 +1659,6 @@
<IncludeHash>True</IncludeHash>
<FileType>File</FileType>
</PublishFile>
<PublishFile Include="ICSharpCode.SharpZipLib">
<Visible>False</Visible>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Include</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>Assembly</FileType>
</PublishFile>
<PublishFile Include="ICSharpCode.SharpZipLib.pdb">
<Visible>False</Visible>
<Group>
Expand Down
69 changes: 46 additions & 23 deletions DiagManager/Templates/SQLPerfmon_Template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\# of Exceps Thrown / sec">
Expand All @@ -23,7 +24,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\# of Filters / sec">
Expand All @@ -36,7 +38,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\# of Finallys / sec">
Expand All @@ -49,7 +52,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\Throw To Catch Depth / sec">
Expand All @@ -62,7 +66,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
</PerfmonObject>
Expand All @@ -77,7 +82,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\# of marshalling">
Expand All @@ -90,7 +96,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\# of Stubs">
Expand All @@ -103,7 +110,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\# of TLB exports / sec">
Expand All @@ -116,7 +124,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\# of TLB imports / sec">
Expand All @@ -129,7 +138,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
</PerfmonObject>
Expand All @@ -144,7 +154,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\# of Methods Jitted">
Expand All @@ -157,7 +168,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\% Time in Jit">
Expand All @@ -170,7 +182,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\IL Bytes Jitted / sec">
Expand All @@ -183,7 +196,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\Standard Jit Failures">
Expand All @@ -196,7 +210,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\Total # of IL Bytes Jitted">
Expand All @@ -209,7 +224,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
</PerfmonObject>
Expand All @@ -224,7 +240,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\Assembly Search Length">
Expand All @@ -237,7 +254,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\Bytes in Loader Heap">
Expand All @@ -250,7 +268,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\Current AppDomains">
Expand All @@ -263,7 +282,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\Current Assemblies">
Expand All @@ -276,7 +296,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\Current Classes Loaded">
Expand All @@ -289,7 +310,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\Rate of App Domains unloaded">
Expand All @@ -302,7 +324,8 @@
<Version name="10.50" enabled="true"/>
<Version name="11" enabled="true"/>
<Version name="12" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/> <Version name="15" enabled="true"/>
<Version name="13" enabled="true"/> <Version name="14" enabled="true"/>
<Version name="15" enabled="true"/>
</Versions>
</PerfmonCounter>
<PerfmonCounter name="\Rate of AppDomains">
Expand Down
4 changes: 4 additions & 0 deletions DiagManager/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="SharpZipLib" version="1.2.0" targetFramework="net452" />
</packages>

0 comments on commit 66421bb

Please sign in to comment.