forked from chrisdamba/SQL-Server-Management-Studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Check Precalc Backup Coppies.sql
42 lines (35 loc) · 1.67 KB
/
Check Precalc Backup Coppies.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
USE [dbaadmin]
GO
DECLARE @S VarChar(max) = '\\SEAPSQLRYL0B\SEAPSQLRYL0B_backup'
DECLARE @D VarChar(max) = '\\SEAPSQLRYL0B\POST_CALC'
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'GINS_Integration_DB_*.*' ,0)
UNION ALL
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'GINS_Integration_DFNTL_*.*' ,0)
UNION ALL
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'GINS_Feeds_DB_*.*' ,0)
UNION ALL
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'GINS_Feeds_DFNTL_*.*' ,0)
UNION ALL
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'GINS_Master_DB_*.*' ,0)
UNION ALL
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'GINS_Master_DFNTL_*.*' ,0)
UNION ALL
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'GINS_DB_*.*' ,0)
UNION ALL
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'GINS_DFNTL_*.*' ,0)
ORDER BY 1
GO
DECLARE @S VarChar(max) = '\\SEAPSQLRYL0A\SEAPSQLRYL0A_backup'
DECLARE @D VarChar(max) = '\\SEAPSQLRYL0A\POST_CALC'
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'RM_Integration_DB_*.*' ,0)
UNION ALL
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'RM_Integration_DFNTL_*.*' ,0)
UNION ALL
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'GETTY_Master_DB_*.*' ,0)
UNION ALL
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'GETTY_Master_DFNTL_*.*' ,0)
UNION ALL
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'ContractMaintenanceControl_DB_*.*',0)
UNION ALL
SELECT * FROM [dbaadmin].[dbo].[dbaudf_DirectoryCompare] (@S,@D,'ContractMaintenanceControl_DFNTL_*.*',0)
ORDER BY 1