File tree Expand file tree Collapse file tree 8 files changed +32
-11
lines changed
.vs/SQLDBA-SSMS Solution/v15 Expand file tree Collapse file tree 8 files changed +32
-11
lines changed Original file line number Diff line number Diff line change 188
188
<FullPath >Job [DBA - FirstResponderKit_Collect_PerformanceData].sql</FullPath >
189
189
</FileNode >
190
190
<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 >
193
193
<AssociatedConnUserName />
194
194
<FullPath >Job [DBA - Log_With_sp_WhoIsActive].sql</FullPath >
195
195
</FileNode >
242
242
<FullPath >Testing.sql</FullPath >
243
243
</FileNode >
244
244
<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 >
247
247
<AssociatedConnUserName />
248
248
<FullPath >usp_WhoIsActive_Blocking.sql</FullPath >
249
249
</FileNode >
Original file line number Diff line number Diff line change 18
18
BEGIN
19
19
/* Created By: Ajay Dwivedi (ajay.dwivedi2007@gmail.com)
20
20
Version: 0.0
21
+ Permission: https://github.com/imajaydwivedi/SQLDBA-SSMS-Solution/blob/master/sp_HealthCheck/Certificate%20Based%20Authentication.sql
21
22
Updates: May 12, 2019 - Get Blocking Details
22
23
*/
23
24
SET NOCOUNT ON ;
Original file line number Diff line number Diff line change 39
39
<ConnectionProtocol >NotSpecified</ConnectionProtocol >
40
40
<ApplicationName >Microsoft SQL Server Management Studio - Query</ApplicationName >
41
41
</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 >
42
54
</Items >
43
55
</LogicalFolder >
44
56
<LogicalFolder Name =" Queries" Type =" 0" Sorted =" true" >
80
92
<FullPath >3. Create table [dbo].[WhoIsActive_ResultSets].sql</FullPath >
81
93
</FileNode >
82
94
<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 >
85
97
<AssociatedConnUserName />
86
98
<FullPath >4. Create Job [DBA - Log_With_sp_WhoIsActive].sql</FullPath >
87
99
</FileNode >
Original file line number Diff line number Diff line change 188
188
<FullPath >HADR or Mirroring.sql</FullPath >
189
189
</FileNode >
190
190
<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 / >
194
194
<FullPath >Kill All Session for DB.sql</FullPath >
195
195
</FileNode >
196
196
<FileNode Name =" Maintainence - Delete files older than 72 hours.sql" >
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ BEGIN -- Proc Body
15
15
/* Created By: Ajay Dwivedi
16
16
Version: 0.0
17
17
Permission: https://dba.stackexchange.com/a/188193
18
+ https://github.com/imajaydwivedi/SQLDBA-SSMS-Solution/blob/master/sp_HealthCheck/Certificate%20Based%20Authentication.sql
18
19
Modifications: May 14, 2019 - Creating procedure for 1st time
19
20
*/
20
21
SET NOCOUNT ON ;
Original file line number Diff line number Diff line change @@ -58,6 +58,13 @@ CREATE USER [CodeSigningLogin] FROM CERTIFICATE [CodeSigningCertificate];
58
58
GO
59
59
GRANT EXECUTE ON dbo .usp_WhoIsActive_Blocking TO [CodeSigningLogin];
60
60
GO
61
+
62
+
63
+ /* ***************************************************************
64
+ * Sign Stored Procedure with CERTIFICATE
65
+ * **************************************************************/
66
+ USE DBA
67
+ GO
61
68
ADD SIGNATURE TO [dbo].usp_WhoIsActive_Blocking
62
69
BY CERTIFICATE [CodeSigningCertificate]
63
70
WITH PASSWORD = ' $tr0ngp@$$w0rd'
Original file line number Diff line number Diff line change 80
80
<FullPath >0.2 - sp_HealthCheck.sql</FullPath >
81
81
</FileNode >
82
82
<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 >
85
85
<AssociatedConnUserName />
86
86
<FullPath >Certificate Based Authentication.sql</FullPath >
87
87
</FileNode >
You can’t perform that action at this time.
0 commit comments