Skip to content

Commit 11e7432

Browse files
author
Ajay Dwivedi
committed
Updated scripts
Updated scripts
1 parent b2d6c36 commit 11e7432

7 files changed

+827
-4
lines changed
3.5 KB
Binary file not shown.

LogShipping/LogShipping.ssmssqlproj

+30
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,30 @@
6363
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
6464
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
6565
</ConnectionNode>
66+
<ConnectionNode Name="TUL1CIPXDB17:CORPORATE\adwivedi">
67+
<Created>2019-08-18T09:10:25.8486751+05:30</Created>
68+
<Type>SQL</Type>
69+
<Server>TUL1CIPXDB17</Server>
70+
<UserName />
71+
<Authentication>Windows Authentication</Authentication>
72+
<InitialDB />
73+
<LoginTimeout>30</LoginTimeout>
74+
<ExecutionTimeout>0</ExecutionTimeout>
75+
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
76+
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
77+
</ConnectionNode>
78+
<ConnectionNode Name="TUL1CIPXDB18:CORPORATE\adwivedi">
79+
<Created>2019-08-14T12:06:59.3405831+05:30</Created>
80+
<Type>SQL</Type>
81+
<Server>TUL1CIPXDB18</Server>
82+
<UserName />
83+
<Authentication>Windows Authentication</Authentication>
84+
<InitialDB />
85+
<LoginTimeout>30</LoginTimeout>
86+
<ExecutionTimeout>0</ExecutionTimeout>
87+
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
88+
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
89+
</ConnectionNode>
6690
<ConnectionNode Name="tul1cipxdb19:CORPORATE\adwivedi">
6791
<Created>2019-04-19T21:22:01.0552845+05:30</Created>
6892
<Type>SQL</Type>
@@ -169,6 +193,12 @@
169193
<AssociatedConnUserName />
170194
<FullPath>v1.4 - [usp_GetLogWalkJobHistoryAlert_Suppress].sql</FullPath>
171195
</FileNode>
196+
<FileNode Name="v1.5 - [usp_GetLogWalkJobHistoryAlert_Suppress].sql">
197+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:TUL1CIPCWRDB1:True</AssociatedConnectionMoniker>
198+
<AssociatedConnSrvName>TUL1CIPCWRDB1</AssociatedConnSrvName>
199+
<AssociatedConnUserName />
200+
<FullPath>v1.5 - [usp_GetLogWalkJobHistoryAlert_Suppress].sql</FullPath>
201+
</FileNode>
172202
</Items>
173203
</LogicalFolder>
174204
<LogicalFolder Name="Miscellaneous" Type="3" Sorted="true">

LogShipping/v1.4 - [usp_GetLogWalkJobHistoryAlert_Suppress].sql

+12-2
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,18 @@ RCA: Kindly execute below query to find out details of Blockers.
575575
IF @p_Verbose = 1
576576
PRINT ' Starting sp_WhoIsActive capturing..';
577577
EXEC DBA.dbo.usp_SendWhoIsActiveMessage @p_JobName = @p_JobName;
578-
WAITFOR DELAY '00:05';
579-
SET @IsBaseCapturingDoneInLast5Minutes = 1;
578+
WAITFOR DELAY '00:01';
579+
580+
WHILE(1=1)
581+
BEGIN
582+
IF DBA.dbo.fn_IsJobRunning('DBA - Log_With_sp_WhoIsActive') = 0
583+
BEGIN
584+
SET @IsBaseCapturingDoneInLast5Minutes = 1;
585+
BREAK;
586+
END
587+
ELSE
588+
WAITFOR DELAY '00:01'
589+
END
580590
END
581591

582592
IF @IsBaseCapturingDoneInLast5Minutes = 1

0 commit comments

Comments
 (0)