Skip to content

Commit 14deee5

Browse files
author
Ajay Dwivedi
committed
Updated few lines
Updated few lines
1 parent ada702d commit 14deee5

File tree

8 files changed

+32
-11
lines changed

8 files changed

+32
-11
lines changed
7 KB
Binary file not shown.

Baselining/Baselining.ssmssqlproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188
<FullPath>Job [DBA - FirstResponderKit_Collect_PerformanceData].sql</FullPath>
189189
</FileNode>
190190
<FileNode Name="Job [DBA - Log_With_sp_WhoIsActive].sql">
191-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:tul1cipxdb19:True</AssociatedConnectionMoniker>
192-
<AssociatedConnSrvName>tul1cipxdb19</AssociatedConnSrvName>
191+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:TUL1DBAPMTDB1\SQL2017:True</AssociatedConnectionMoniker>
192+
<AssociatedConnSrvName>TUL1DBAPMTDB1\SQL2017</AssociatedConnSrvName>
193193
<AssociatedConnUserName />
194194
<FullPath>Job [DBA - Log_With_sp_WhoIsActive].sql</FullPath>
195195
</FileNode>
@@ -242,8 +242,8 @@
242242
<FullPath>Testing.sql</FullPath>
243243
</FileNode>
244244
<FileNode Name="usp_WhoIsActive_Blocking.sql">
245-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:tul1cipxdb19:True</AssociatedConnectionMoniker>
246-
<AssociatedConnSrvName>tul1cipxdb19</AssociatedConnSrvName>
245+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:TUL1DBAPMTDB1\SQL2017:True</AssociatedConnectionMoniker>
246+
<AssociatedConnSrvName>TUL1DBAPMTDB1\SQL2017</AssociatedConnSrvName>
247247
<AssociatedConnUserName />
248248
<FullPath>usp_WhoIsActive_Blocking.sql</FullPath>
249249
</FileNode>

Baselining/usp_WhoIsActive_Blocking.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ AS
1818
BEGIN
1919
/* Created By: Ajay Dwivedi (ajay.dwivedi2007@gmail.com)
2020
Version: 0.0
21+
Permission: https://github.com/imajaydwivedi/SQLDBA-SSMS-Solution/blob/master/sp_HealthCheck/Certificate%20Based%20Authentication.sql
2122
Updates: May 12, 2019 - Get Blocking Details
2223
*/
2324
SET NOCOUNT ON;

Blocking Alert/Blocking Alert.ssmssqlproj

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@
3939
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
4040
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
4141
</ConnectionNode>
42+
<ConnectionNode Name="TUL1DBAPMTDB1:CORPORATE\adwivedi">
43+
<Created>2019-05-15T18:36:38.0723958+05:30</Created>
44+
<Type>SQL</Type>
45+
<Server>TUL1DBAPMTDB1</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">
@@ -80,8 +92,8 @@
8092
<FullPath>3. Create table [dbo].[WhoIsActive_ResultSets].sql</FullPath>
8193
</FileNode>
8294
<FileNode Name="4. Create Job [DBA - Log_With_sp_WhoIsActive].sql">
83-
<AssociatedConnectionMoniker />
84-
<AssociatedConnSrvName />
95+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:TUL1DBAPMTDB1:True</AssociatedConnectionMoniker>
96+
<AssociatedConnSrvName>TUL1DBAPMTDB1</AssociatedConnSrvName>
8597
<AssociatedConnUserName />
8698
<FullPath>4. Create Job [DBA - Log_With_sp_WhoIsActive].sql</FullPath>
8799
</FileNode>

Misscellaneous Queries/Misscellaneous Queries.ssmssqlproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@
188188
<FullPath>HADR or Mirroring.sql</FullPath>
189189
</FileNode>
190190
<FileNode Name="Kill All Session for DB.sql">
191-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:BAN-2ADWIVEDI-L:False:sa</AssociatedConnectionMoniker>
192-
<AssociatedConnSrvName>BAN-2ADWIVEDI-L</AssociatedConnSrvName>
193-
<AssociatedConnUserName>sa</AssociatedConnUserName>
191+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:localhost:True</AssociatedConnectionMoniker>
192+
<AssociatedConnSrvName>localhost</AssociatedConnSrvName>
193+
<AssociatedConnUserName />
194194
<FullPath>Kill All Session for DB.sql</FullPath>
195195
</FileNode>
196196
<FileNode Name="Maintainence - Delete files older than 72 hours.sql">

Misscellaneous Queries/sp_Kill.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ BEGIN -- Proc Body
1515
/* Created By: Ajay Dwivedi
1616
Version: 0.0
1717
Permission: https://dba.stackexchange.com/a/188193
18+
https://github.com/imajaydwivedi/SQLDBA-SSMS-Solution/blob/master/sp_HealthCheck/Certificate%20Based%20Authentication.sql
1819
Modifications: May 14, 2019 - Creating procedure for 1st time
1920
*/
2021
SET NOCOUNT ON;

sp_HealthCheck/Certificate Based Authentication.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ CREATE USER [CodeSigningLogin] FROM CERTIFICATE [CodeSigningCertificate];
5858
GO
5959
GRANT EXECUTE ON dbo.usp_WhoIsActive_Blocking TO [CodeSigningLogin];
6060
GO
61+
62+
63+
/* ***************************************************************
64+
* Sign Stored Procedure with CERTIFICATE
65+
* **************************************************************/
66+
USE DBA
67+
GO
6168
ADD SIGNATURE TO [dbo].usp_WhoIsActive_Blocking
6269
BY CERTIFICATE [CodeSigningCertificate]
6370
WITH PASSWORD = '$tr0ngp@$$w0rd'

sp_HealthCheck/sp_HealthCheck.ssmssqlproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
<FullPath>0.2 - sp_HealthCheck.sql</FullPath>
8181
</FileNode>
8282
<FileNode Name="Certificate Based Authentication.sql">
83-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:BAN-1ADWIVEDI-L:True</AssociatedConnectionMoniker>
84-
<AssociatedConnSrvName>BAN-1ADWIVEDI-L</AssociatedConnSrvName>
83+
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:LOCALHOST:True</AssociatedConnectionMoniker>
84+
<AssociatedConnSrvName>LOCALHOST</AssociatedConnSrvName>
8585
<AssociatedConnUserName />
8686
<FullPath>Certificate Based Authentication.sql</FullPath>
8787
</FileNode>

0 commit comments

Comments
 (0)