forked from chrisdamba/SQL-Server-Management-Studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SQLQuery7xx.sql
42 lines (37 loc) · 1.63 KB
/
SQLQuery7xx.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SELECT ClusterName
,ClusterIP
,ClusterVer
,MAX(modDate)
FROM [dbacentral].[dbo].[DBA_ClustInfo]
WHERE SQLName = 'G1SQLA\A'
GROUP BY ClusterName
,ClusterIP
,ClusterVer
ORDER BY 1,2,3
SELECT GroupName
,ResourceType
,ResourceName
,ResourceDetail
,Dependencies
FROM [dbacentral].[dbo].[DBA_ClustInfo]
WHERE SQLName = 'G1SQLA\A'
ORDER BY 1,2,3
SELECT [JobName]
,[Description]
,[Enabled]
,[AvgDurationMin]
,[JobSteps]
FROM [dbacentral].[dbo].[DBA_JobInfo]
WHERE [SQLName] = 'G1SQLA\A'
AND [JobName] Like 'APPL%'
ORDER BY 1
SELECT [JobName]
,[Description]
,[Enabled]
,[AvgDurationMin]
,[JobSteps]
FROM [dbacentral].[dbo].[DBA_JobInfo]
WHERE [SQLName] = 'G1SQLA\A'
AND [JobName] Like 'SPCL%'
ORDER BY 1