Skip to content

Commit 5fc9565

Browse files
author
Ajay Dwivedi
committed
Update in Scripts
Update in Scripts
1 parent 11042c3 commit 5fc9565

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1469
-378
lines changed
0 Bytes
Binary file not shown.

Backup-Restore/Backup-Restore.ssmssqlproj

+6-6
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
<FullPath>3) Generate - Restore Script - DiskFiles.sql</FullPath>
8181
</FileNode>
8282
<FileNode Name="4) Script Out DB_Owner from Source.sql">
83-
<AssociatedConnectionMoniker />
84-
<AssociatedConnSrvName />
83+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
84+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
8585
<AssociatedConnUserName />
8686
<FullPath>4) Script Out DB_Owner from Source.sql</FullPath>
8787
</FileNode>
@@ -134,14 +134,14 @@
134134
<FullPath>Query - Backup History - Path Finding.sql</FullPath>
135135
</FileNode>
136136
<FileNode Name="Query - Backup History.sql">
137-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:TUL1CIPCNPDB1:True</AssociatedConnectionMoniker>
138-
<AssociatedConnSrvName>TUL1CIPCNPDB1</AssociatedConnSrvName>
137+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:LOCALHOST:True</AssociatedConnectionMoniker>
138+
<AssociatedConnSrvName>LOCALHOST</AssociatedConnSrvName>
139139
<AssociatedConnUserName />
140140
<FullPath>Query - Backup History.sql</FullPath>
141141
</FileNode>
142142
<FileNode Name="Query - Restore History.sql">
143-
<AssociatedConnectionMoniker />
144-
<AssociatedConnSrvName />
143+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:LOCALHOST:True</AssociatedConnectionMoniker>
144+
<AssociatedConnSrvName>LOCALHOST</AssociatedConnSrvName>
145145
<AssociatedConnUserName />
146146
<FullPath>Query - Restore History.sql</FullPath>
147147
</FileNode>

Backup-Restore/Query - Backup History.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ SELECT TOP 100 CONVERT(CHAR(100), SERVERPROPERTY('Servername')) AS SERVER
2626
,is_copy_only
2727
FROM msdb.dbo.backupmediafamily AS bmf
2828
INNER JOIN msdb.dbo.backupset AS bs ON bmf.media_set_id = bs.media_set_id
29-
WHERE database_name = 'Staging'
29+
WHERE database_name = 'StagingTurkey'
3030
ORDER BY bs.backup_finish_date DESC

Backup-Restore/v0.0 - Move Data and Log Files.sql

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
SET NOCOUNT ON;
1010

1111
-- INPUT 01 -> Path for Data Files
12-
DECLARE @p_Old_Data_Path varchar(255) = 'P:\'; -- Leave NULL if no change required
13-
DECLARE @p_New_Data_Path varchar(255) = 'O:\'; -- Leave NULL if no change required
12+
DECLARE @p_Old_Data_Path varchar(255) = 'H:\'; -- Leave NULL if no change required
13+
DECLARE @p_New_Data_Path varchar(255) = 'L:\'; -- Leave NULL if no change required
1414

1515
-- INPUT 02 -> Path for Log Files
16-
DECLARE @p_Old_Log_Path varchar(255) = 'P:'; -- Leave NULL if no change required
17-
DECLARE @p_New_Log_Path varchar(255) = 'O:'; -- Leave NULL if no change required
16+
DECLARE @p_Old_Log_Path varchar(255) = 'H:'; -- Leave NULL if no change required
17+
DECLARE @p_New_Log_Path varchar(255) = 'L:'; -- Leave NULL if no change required
1818

1919
-- INPUT 03 -> Comma separated list of Databases
2020
IF OBJECT_ID('tempdb..#Dbs2Consider') IS NOT NULL
2121
DROP TABLE #Dbs2Consider;
2222
SELECT d.database_id, d.name, d.recovery_model_desc INTO #Dbs2Consider FROM sys.databases as d
2323
WHERE d.database_id > 4
24-
AND d.name IN ('RCM_rovicore_20130710_NoMusic1a_en-US')--,'StagingFiltered','StagingTurkey','MosaicFiltered','MosaicFiltered')
24+
AND d.name IN ('FaceBook', 'MuzeUK', 'Twitter', 'UKVideo')--,'StagingFiltered','StagingTurkey','MosaicFiltered','MosaicFiltered')
2525

2626
-- Parameter Validations
2727
DECLARE @NewLineChar AS CHAR(2) = CHAR(13) + CHAR(10)

Baselining/Baselining.ssmssqlproj

+10-10
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
<FullPath>Job [DBA - FirstResponderKit_Collect_PerformanceData].sql</FullPath>
105105
</FileNode>
106106
<FileNode Name="Job [DBA - Log_With_sp_WhoIsActive].sql">
107-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:TUL1MDUTWDS2:True</AssociatedConnectionMoniker>
108-
<AssociatedConnSrvName>TUL1MDUTWDS2</AssociatedConnSrvName>
107+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
108+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
109109
<AssociatedConnUserName />
110110
<FullPath>Job [DBA - Log_With_sp_WhoIsActive].sql</FullPath>
111111
</FileNode>
@@ -116,8 +116,8 @@
116116
<FullPath>Optimize [DBA] database.sql</FullPath>
117117
</FileNode>
118118
<FileNode Name="PerfMon - AsOf - Delta.sql">
119-
<AssociatedConnectionMoniker />
120-
<AssociatedConnSrvName />
119+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
120+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
121121
<AssociatedConnUserName />
122122
<FullPath>PerfMon - AsOf - Delta.sql</FullPath>
123123
</FileNode>
@@ -127,11 +127,11 @@
127127
<AssociatedConnUserName />
128128
<FullPath>PerfMon - During.sql</FullPath>
129129
</FileNode>
130-
<FileNode Name="PerfMon-DataCollection.sql">
131-
<AssociatedConnectionMoniker />
132-
<AssociatedConnSrvName />
130+
<FileNode Name="PerfMon-Dbatools-DataCollection.sql">
131+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
132+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
133133
<AssociatedConnUserName />
134-
<FullPath>PerfMon-DataCollection.sql</FullPath>
134+
<FullPath>PerfMon-Dbatools-DataCollection.sql</FullPath>
135135
</FileNode>
136136
<FileNode Name="SELECT permission to All Users.sql">
137137
<AssociatedConnectionMoniker />
@@ -242,8 +242,8 @@
242242
<FullPath>WhoIsActive-Find-Execution-Stats-Per-Query.sql</FullPath>
243243
</FileNode>
244244
<FileNode Name="Z__What Was Running - Blocking Wait Time.sql">
245-
<AssociatedConnectionMoniker />
246-
<AssociatedConnSrvName />
245+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
246+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
247247
<AssociatedConnUserName />
248248
<FullPath>Z__What Was Running - Blocking Wait Time.sql</FullPath>
249249
</FileNode>

Baselining/PerfMon-DataCollection.sql

-3
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Template Path
2+
\\tul1dbapmtdb1\H$\Performance-Issues\DBA_PerfMon_Collector-Template.xml
3+
4+
LogMan.exe => Manage Performance Monitor & performance logs from the command line.
5+
https://ss64.com/nt/logman.html
6+
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/logman
7+
8+
logman import -name “DBA_PerfMon_Collector” -xml “E:\GitHub\SQLDBA-SSMS-Solution\Baselining\DBA_PerfMon_Collector-Template.xml
9+
logman update -name “DBA_PerfMon_Collector” -f bin -v mmddhhmm -o "E:\Downloads" -rf 00:05:00 -max 102400
10+
logman start -name “DBA_PerfMon_Collector”

BlitzQueries/BlitzQueries.ssmssqlproj

+32-8
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,28 @@
3939
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
4040
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
4141
</ConnectionNode>
42+
<ConnectionNode Name="TUL1CIPXDB17:CORPORATE\adwivedi">
43+
<Created>2019-11-06T12:00:46.9564943+05:30</Created>
44+
<Type>SQL</Type>
45+
<Server>TUL1CIPXDB17</Server>
46+
<UserName />
47+
<Authentication>Windows Authentication</Authentication>
48+
<InitialDB>master</InitialDB>
49+
<LoginTimeout>30</LoginTimeout>
50+
<ExecutionTimeout>0</ExecutionTimeout>
51+
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
52+
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
53+
</ConnectionNode>
4254
</Items>
4355
</LogicalFolder>
4456
<LogicalFolder Name="Queries" Type="0" Sorted="true">
4557
<Items>
58+
<FileNode Name="__DiagManager-PssDiag-SqlNexus.sql">
59+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
60+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
61+
<AssociatedConnUserName />
62+
<FullPath>__DiagManager-PssDiag-SqlNexus.sql</FullPath>
63+
</FileNode>
4664
<FileNode Name="Blitz.sql">
4765
<AssociatedConnectionMoniker />
4866
<AssociatedConnSrvName />
@@ -56,8 +74,8 @@
5674
<FullPath>BlitzCache.sql</FullPath>
5775
</FileNode>
5876
<FileNode Name="blitzFirst.sql">
59-
<AssociatedConnectionMoniker />
60-
<AssociatedConnSrvName />
77+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
78+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
6179
<AssociatedConnUserName />
6280
<FullPath>blitzFirst.sql</FullPath>
6381
</FileNode>
@@ -68,8 +86,8 @@
6886
<FullPath>BlitzIndex.sql</FullPath>
6987
</FileNode>
7088
<FileNode Name="Blocking Tree.sql">
71-
<AssociatedConnectionMoniker />
72-
<AssociatedConnSrvName />
89+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
90+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
7391
<AssociatedConnUserName />
7492
<FullPath>Blocking Tree.sql</FullPath>
7593
</FileNode>
@@ -80,8 +98,8 @@
8098
<FullPath>Buffer-Pool-Analysis.sql</FullPath>
8199
</FileNode>
82100
<FileNode Name="Configure_PSSDiag.sql">
83-
<AssociatedConnectionMoniker />
84-
<AssociatedConnSrvName />
101+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
102+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
85103
<AssociatedConnUserName />
86104
<FullPath>Configure_PSSDiag.sql</FullPath>
87105
</FileNode>
@@ -109,6 +127,12 @@
109127
<AssociatedConnUserName />
110128
<FullPath>Detect n Reduce High VLFs.sql</FullPath>
111129
</FileNode>
130+
<FileNode Name="Find-Indirect-Connections.sql">
131+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:TUL1CIPXDB17:True</AssociatedConnectionMoniker>
132+
<AssociatedConnSrvName>TUL1CIPXDB17</AssociatedConnSrvName>
133+
<AssociatedConnUserName />
134+
<FullPath>Find-Indirect-Connections.sql</FullPath>
135+
</FileNode>
112136
<FileNode Name="Fragmentation-Analysis.sql">
113137
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:LOCALHOST:True</AssociatedConnectionMoniker>
114138
<AssociatedConnSrvName>LOCALHOST</AssociatedConnSrvName>
@@ -188,8 +212,8 @@
188212
<FullPath>Vw_WhoIsActive_Blocking.sql</FullPath>
189213
</FileNode>
190214
<FileNode Name="WhatIsRunning.sql">
191-
<AssociatedConnectionMoniker />
192-
<AssociatedConnSrvName />
215+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:LOCALHOST:True</AssociatedConnectionMoniker>
216+
<AssociatedConnSrvName>LOCALHOST</AssociatedConnSrvName>
193217
<AssociatedConnUserName />
194218
<FullPath>WhatIsRunning.sql</FullPath>
195219
</FileNode>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
select *
2+
from dbo.WhoIsActive_ResultSets as r
3+
where r.database_name <> 'Staging' --and collection_time ='2019-11-05 05:15:05.477'
4+
and r.locks.exist('/Database[@name="Staging"]')=1

BlitzQueries/Fragmentation-Analysis.sql

+26-16
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,45 @@
11
# Script to Get Fragmentation Stats for All Dbs on Multiple Servers (in Parallel Jobs)
2-
$dbServers = @('TUL1CIPBIAPP1','TUL1CIPBIAPP2','TUL1CIPBIAPP3','TUL1CIPXDB18','TUL1SUB2008');
2+
$dbServers = @('TUL1CIPCNPDB1','TUL1CIPEDB2','TUL1CIPXDB13');
33

44
$dbQuery = @"
55
select d.name
66
from sys.databases as d
77
where not(d.source_database_id IS NOT NULL or d.state_desc = 'OFFLINE' or d.database_id <= 4)
8+
and d.compatibility_level = (select m.compatibility_level from sys.databases as m where m.name = 'model')
89
"@;
910

1011
$IndexQuery = @"
1112
select @@serverName as ServerName,
1213
db_name(ips.database_id) as DataBaseName,
13-
object_name(ips.object_id) as ObjectName,
14-
sch.name as SchemaName,
14+
sch.name + '.' + object_name(ips.object_id) as TableName,
1515
ind.name as IndexName,
1616
ips.index_type_desc,
17+
ips.alloc_unit_type_desc,
18+
ODefrag.UpdatedTime as OlaIndexDefrag,
1719
avg_fragmentation_in_percent as avg_fragmentation,
1820
avg_page_space_used_in_percent,
1921
page_count,
20-
ps.row_count,
21-
STATS_DATE(ind.object_id, ind.index_id) AS StatsUpdated
22+
ps.row_count
23+
--,sts.name as StatsName
24+
,sp.last_updated as stats_last_updated
25+
,sp.rows as stats_rows
26+
,sp.modification_counter as stats_modification_counter
27+
,STATS_DATE(ind.object_id, ind.index_id) AS StatsUpdated
28+
,OSts.UpdatedTime AS OlaStatsUpdated
29+
,[DeFrag_Filter = {PageCount >= 1000}] = case when ips.page_count >= 100 then 'Yes' else 'No' end
30+
,[Stats_Filter = {ModifiedStatistics}] = case when sp.modification_counter > 0 then 'Yes' else 'No' end
31+
,[Stats_Filter = {@StatisticsModificationLevel}] = case when SQRT(ps.row_count * 1000) >= sp.modification_counter then 'Yes' else 'No' end
2232
from sys.dm_db_index_physical_stats(DB_ID(),NULL,NULL,NULL,'LIMITED') as ips
23-
inner join sys.tables as tbl
24-
on ips.object_id = tbl.object_id
25-
inner join sys.schemas as sch
26-
on tbl.schema_id = sch.schema_id
27-
inner join sys.indexes as ind
28-
on ips.index_id = ind.index_id and
29-
ips.object_id = ind.object_id
30-
inner join sys.dm_db_partition_stats as ps
31-
on ps.object_id = ips.object_id and
32-
ps.index_id = ips.index_id
33-
where page_count >= 1000;
33+
inner join sys.indexes as ind on ips.index_id = ind.index_id and ips.object_id = ind.object_id
34+
inner join sys.tables as tbl on ips.object_id = tbl.object_id
35+
inner join sys.schemas as sch on tbl.schema_id = sch.schema_id
36+
inner join sys.dm_db_partition_stats as ps on ps.object_id = ips.object_id and ps.index_id = ips.index_id
37+
left join sys.stats as sts on sts.object_id = ind.object_id
38+
cross apply sys.dm_db_stats_properties(ind.object_id, sts.stats_id) as sp
39+
outer apply (SELECT MAX(cl.EndTime) as UpdatedTime FROM DBA..CommandLog as cl WHERE cl.DatabaseName = DB_NAME() and tbl.name = cl.ObjectName and sch.name = cl.SchemaName and ind.name = cl.IndexName AND cl.CommandType = 'UPDATE_STATISTICS') AS OSts
40+
outer apply (SELECT MAX(cl.EndTime) as UpdatedTime FROM DBA..CommandLog as cl WHERE cl.DatabaseName = DB_NAME() and tbl.name = cl.ObjectName and sch.name = cl.SchemaName and ind.name = cl.IndexName AND cl.CommandType = 'ALTER_INDEX') AS ODefrag
41+
where sts.name = ind.name
42+
order by avg_fragmentation DESC
3443
"@;
3544

3645
foreach($srv in $dbServers) {
@@ -68,6 +77,7 @@ while($Jobs_Yet2Process -ne $null); # keep looping if jobs are still in progress
6877
# Save to Excel
6978
$IndexAnalysisResult | Export-Excel -Path C:\Temp\IndexAnalysisResult.xlsx -WorksheetName 'IndexAnalysisResult';
7079

80+
7181
# Find Jobs with Failures
7282
$Jobs_Issue = Get-Job -Name IndexStats* |
7383
Where-Object {$_.State -notin ('Completed','NotStarted','Running','Suspending','Stopping')};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
https://github.com/Microsoft/DiagManager
2+
https://github.com/microsoft/DiagManager/wiki/Creating-Custom-Collectors
3+
https://github.com/microsoft/DiagManager/wiki/Creating-PSSDiag-Package
4+
https://github.com/microsoft/DiagManager/wiki/Running-PSSDiag
5+
https://github.com/microsoft/DiagManager/wiki/Running-PSSDiag-on-a-Cluster
6+
https://databasebestpractices.com/detailed-overview-pssdiag/
7+
8+
https://www.sqldbadiaries.com/2010/09/12/run-pssdiag-through-a-sql-agent-job/
9+
https://itknowledgeexchange.techtarget.com/sql-server/pssdiag-has-some-useful-parameters/
10+
11+
-- Create service <<SQLDIAG>>
12+
pssdiag.cmd /R
13+
14+
-- Start service
15+
net start sqldiag
16+
17+
-- Stop service
18+
net stop sqldiag
19+
20+
SET NOCOUNT ON;
21+
DECLARE @output_table table (ID int identity(1,1), output varchar(500) null);
22+
DECLARE @result int;
23+
24+
INSERT @output_table
25+
EXEC @result = xp_cmdshell 'net stop sqldiag';
26+
27+
-- SELECT * FROM @output_table o where o.output like '%The SQLDIAG service is not started%'
28+
29+
IF (@result = 0 OR EXISTS (SELECT * FROM @output_table o where o.output like '%The SQLDIAG service is not started%'))
30+
PRINT 'SQLDIAG not running'
31+
ELSE
32+
PRINT 'Failure';

BlitzQueries/whoIsActive.sql

+9
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ AND (CASE WHEN REPLACE(REPLACE(TRY_CONVERT(varchar(max),r.sql_text),char(10),'')
6363
--AND [database_name] LIKE 'RoviMusicShipping_UK_%'
6464
ORDER BY [TimeInMinutes] desc
6565
GO
66+
67+
use DBA
68+
69+
select r.collection_time, * from dba..WhoIsActive_ResultSets r
70+
where r.collection_time >= DATEADD(hour,-200,getdate())
71+
and (CASE WHEN REPLACE(REPLACE(CONVERT(varchar(max),r.sql_text),char(10),''),char(13),'') like '%SELECT ![Program ID!], ![Keyword ID!], Weight, Delta%' ESCAPE '!' THEN 1 ELSE 0 END) = 1
72+
AND (CASE WHEN REPLACE(REPLACE(CONVERT(varchar(max),r.sql_text),char(10),''),char(13),'') like '%JOIN Babel.dbo.ProviderMapping pm ON pm.ProviderValue = filter.id AND pm.ProviderID = 2 AND pm.ObjectTypeID = 2 AND pm.IsActive = 1%' ESCAPE '!' THEN 1 ELSE 0 END) = 1
73+
ORDER BY [TimeInMinutes] desc
74+
GO
6675
*/
6776

6877
/*

Blocking Alert/Blocking Alert.ssmssqlproj

+36-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,32 @@
22
<SqlWorkbenchSqlProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="Blocking Alert">
33
<Items>
44
<LogicalFolder Name="Connections" Type="2" Sorted="true">
5-
<Items />
5+
<Items>
6+
<ConnectionNode Name="(local):CORPORATE\adwivedi">
7+
<Created>2019-11-08T20:15:21.3605614+05:30</Created>
8+
<Type>SQL</Type>
9+
<Server>(local)</Server>
10+
<UserName />
11+
<Authentication>Windows Authentication</Authentication>
12+
<InitialDB />
13+
<LoginTimeout>30</LoginTimeout>
14+
<ExecutionTimeout>0</ExecutionTimeout>
15+
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
16+
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
17+
</ConnectionNode>
18+
<ConnectionNode Name="TUL1CIPCNPDB1:CORPORATE\adwivedi">
19+
<Created>2019-11-08T20:15:38.1374995+05:30</Created>
20+
<Type>SQL</Type>
21+
<Server>TUL1CIPCNPDB1</Server>
22+
<UserName />
23+
<Authentication>Windows Authentication</Authentication>
24+
<InitialDB />
25+
<LoginTimeout>30</LoginTimeout>
26+
<ExecutionTimeout>0</ExecutionTimeout>
27+
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
28+
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
29+
</ConnectionNode>
30+
</Items>
631
</LogicalFolder>
732
<LogicalFolder Name="Queries" Type="0" Sorted="true">
833
<Items>
@@ -55,14 +80,20 @@
5580
<FullPath>5. Create Alert [Blocked Process Threshold greator than 5 Minutes].sql</FullPath>
5681
</FileNode>
5782
<FileNode Name="6. Fetch Blocking Information.sql">
58-
<AssociatedConnectionMoniker />
59-
<AssociatedConnSrvName />
83+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
84+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
6085
<AssociatedConnUserName />
6186
<FullPath>6. Fetch Blocking Information.sql</FullPath>
6287
</FileNode>
88+
<FileNode Name="Blocking-Alert-Azure.sql">
89+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
90+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
91+
<AssociatedConnUserName />
92+
<FullPath>Blocking-Alert-Azure.sql</FullPath>
93+
</FileNode>
6394
<FileNode Name="Find-Blocking-Tree-LockTime.sql">
64-
<AssociatedConnectionMoniker />
65-
<AssociatedConnSrvName />
95+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
96+
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
6697
<AssociatedConnUserName />
6798
<FullPath>Find-Blocking-Tree-LockTime.sql</FullPath>
6899
</FileNode>

0 commit comments

Comments
 (0)