Skip to content

Commit 8f3a286

Browse files
author
Ajay Dwivedi
committed
Remove unnecessary connections
Remove unnecessary connections
1 parent d2b399b commit 8f3a286

28 files changed

+504
-2088
lines changed
0 Bytes
Binary file not shown.

Backup-Restore/Backup-Restore.ssmssqlproj

Lines changed: 34 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -2,170 +2,49 @@
22
<SqlWorkbenchSqlProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="Backup-Restore">
33
<Items>
44
<LogicalFolder Name="Connections" Type="2" Sorted="true">
5-
<Items>
6-
<ConnectionNode Name="(local):CORPORATE\adwivedi">
7-
<Created>2018-11-29T12:55:24.5084265+05:30</Created>
8-
<Type>SQL</Type>
9-
<Server>(local)</Server>
10-
<UserName />
11-
<Authentication>Windows Authentication</Authentication>
12-
<InitialDB />
13-
<LoginTimeout>30</LoginTimeout>
14-
<ExecutionTimeout>0</ExecutionTimeout>
15-
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
16-
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
17-
</ConnectionNode>
18-
<ConnectionNode Name="Ann1vesPDb01:CORPORATE\adwivedi">
19-
<Created>2019-04-25T12:55:36.3978942+05:30</Created>
20-
<Type>SQL</Type>
21-
<Server>Ann1vesPDb01</Server>
22-
<UserName />
23-
<Authentication>Windows Authentication</Authentication>
24-
<InitialDB>master</InitialDB>
25-
<LoginTimeout>30</LoginTimeout>
26-
<ExecutionTimeout>0</ExecutionTimeout>
27-
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
28-
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
29-
</ConnectionNode>
30-
<ConnectionNode Name="BAN-1ADWIVEDI-L:CORPORATE\adwivedi">
31-
<Created>2018-09-19T09:55:27.5891753+05:30</Created>
32-
<Type>SQL</Type>
33-
<Server>BAN-1ADWIVEDI-L</Server>
34-
<UserName />
35-
<Authentication>Windows Authentication</Authentication>
36-
<InitialDB />
37-
<LoginTimeout>30</LoginTimeout>
38-
<ExecutionTimeout>0</ExecutionTimeout>
39-
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
40-
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
41-
</ConnectionNode>
42-
<ConnectionNode Name="BAN-2ADWIVEDI-L:Ajay">
43-
<Created>2018-08-14T17:21:09.3478556+05:30</Created>
44-
<Type>SQL</Type>
45-
<Server>BAN-2ADWIVEDI-L</Server>
46-
<UserName>Ajay</UserName>
47-
<Authentication>SQL</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>
54-
<ConnectionNode Name="BAN-2ADWIVEDI-L:CORPORATE\adwivedi">
55-
<Created>2018-08-09T18:42:12.7701224+05:30</Created>
56-
<Type>SQL</Type>
57-
<Server>BAN-2ADWIVEDI-L</Server>
58-
<UserName />
59-
<Authentication>Windows Authentication</Authentication>
60-
<InitialDB />
61-
<LoginTimeout>30</LoginTimeout>
62-
<ExecutionTimeout>0</ExecutionTimeout>
63-
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
64-
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
65-
</ConnectionNode>
66-
<ConnectionNode Name="BAN-2ADWIVEDI-L:sa">
67-
<Created>2018-03-19T20:26:08.4165732+05:30</Created>
68-
<Type>SQL</Type>
69-
<Server>BAN-2ADWIVEDI-L</Server>
70-
<UserName>sa</UserName>
71-
<Authentication>SQL</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="localhost:CORPORATE\adwivedi">
79-
<Created>2019-04-11T12:40:32.279094+05:30</Created>
80-
<Type>SQL</Type>
81-
<Server>localhost</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>
90-
<ConnectionNode Name="SQL-A:sa">
91-
<Created>2018-07-06T12:51:35.942614+05:30</Created>
92-
<Type>SQL</Type>
93-
<Server>SQL-A</Server>
94-
<UserName>sa</UserName>
95-
<Authentication>SQL</Authentication>
96-
<InitialDB>ProInternals</InitialDB>
97-
<LoginTimeout>30</LoginTimeout>
98-
<ExecutionTimeout>0</ExecutionTimeout>
99-
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
100-
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
101-
</ConnectionNode>
102-
<ConnectionNode Name="tul1cipcnpdb1:CORPORATE\adwivedi">
103-
<Created>2019-04-25T11:34:00.6832305+05:30</Created>
104-
<Type>SQL</Type>
105-
<Server>tul1cipcnpdb1</Server>
106-
<UserName />
107-
<Authentication>Windows Authentication</Authentication>
108-
<InitialDB />
109-
<LoginTimeout>30</LoginTimeout>
110-
<ExecutionTimeout>0</ExecutionTimeout>
111-
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
112-
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
113-
</ConnectionNode>
114-
<ConnectionNode Name="TUL1CIPRDB1:CORPORATE\adwivedi">
115-
<Created>2019-06-07T13:14:16.770149+05:30</Created>
116-
<Type>SQL</Type>
117-
<Server>TUL1CIPRDB1</Server>
118-
<UserName />
119-
<Authentication>Windows Authentication</Authentication>
120-
<InitialDB>master</InitialDB>
121-
<LoginTimeout>30</LoginTimeout>
122-
<ExecutionTimeout>0</ExecutionTimeout>
123-
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
124-
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
125-
</ConnectionNode>
126-
</Items>
5+
<Items />
1276
</LogicalFolder>
1287
<LogicalFolder Name="Queries" Type="0" Sorted="true">
1298
<Items>
1309
<FileNode Name="1) Generate - Backup Script.sql">
131-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:SQL-A:False:sa</AssociatedConnectionMoniker>
132-
<AssociatedConnSrvName>SQL-A</AssociatedConnSrvName>
133-
<AssociatedConnUserName>sa</AssociatedConnUserName>
10+
<AssociatedConnectionMoniker />
11+
<AssociatedConnSrvName />
12+
<AssociatedConnUserName />
13413
<FullPath>1) Generate - Backup Script.sql</FullPath>
13514
</FileNode>
13615
<FileNode Name="2) Script Out DB Permissions in case of DB Refresh.sql">
137-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:BAN-1ADWIVEDI-L:True</AssociatedConnectionMoniker>
138-
<AssociatedConnSrvName>BAN-1ADWIVEDI-L</AssociatedConnSrvName>
16+
<AssociatedConnectionMoniker />
17+
<AssociatedConnSrvName />
13918
<AssociatedConnUserName />
14019
<FullPath>2) Script Out DB Permissions in case of DB Refresh.sql</FullPath>
14120
</FileNode>
14221
<FileNode Name="3) Generate - Restore Script - BackupHistory.sql">
143-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:localhost:True</AssociatedConnectionMoniker>
144-
<AssociatedConnSrvName>localhost</AssociatedConnSrvName>
22+
<AssociatedConnectionMoniker />
23+
<AssociatedConnSrvName />
14524
<AssociatedConnUserName />
14625
<FullPath>3) Generate - Restore Script - BackupHistory.sql</FullPath>
14726
</FileNode>
14827
<FileNode Name="3) Generate - Restore Script - DiskFiles.sql">
149-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:Ann1vesPDb01:True</AssociatedConnectionMoniker>
150-
<AssociatedConnSrvName>Ann1vesPDb01</AssociatedConnSrvName>
28+
<AssociatedConnectionMoniker />
29+
<AssociatedConnSrvName />
15130
<AssociatedConnUserName />
15231
<FullPath>3) Generate - Restore Script - DiskFiles.sql</FullPath>
15332
</FileNode>
15433
<FileNode Name="4) Script Out DB_Owner from Source.sql">
155-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:BAN-1ADWIVEDI-L:True</AssociatedConnectionMoniker>
156-
<AssociatedConnSrvName>BAN-1ADWIVEDI-L</AssociatedConnSrvName>
34+
<AssociatedConnectionMoniker />
35+
<AssociatedConnSrvName />
15736
<AssociatedConnUserName />
15837
<FullPath>4) Script Out DB_Owner from Source.sql</FullPath>
15938
</FileNode>
16039
<FileNode Name="5) Set Compatibility Level as per Model.sql">
161-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:BAN-1ADWIVEDI-L:True</AssociatedConnectionMoniker>
162-
<AssociatedConnSrvName>BAN-1ADWIVEDI-L</AssociatedConnSrvName>
40+
<AssociatedConnectionMoniker />
41+
<AssociatedConnSrvName />
16342
<AssociatedConnUserName />
16443
<FullPath>5) Set Compatibility Level as per Model.sql</FullPath>
16544
</FileNode>
16645
<FileNode Name="6) Execute CheckDB _ UpdateStats for Migrated DBs.sql">
167-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:BAN-1ADWIVEDI-L:True</AssociatedConnectionMoniker>
168-
<AssociatedConnSrvName>BAN-1ADWIVEDI-L</AssociatedConnSrvName>
46+
<AssociatedConnectionMoniker />
47+
<AssociatedConnSrvName />
16948
<AssociatedConnUserName />
17049
<FullPath>6) Execute CheckDB _ UpdateStats for Migrated DBs.sql</FullPath>
17150
</FileNode>
@@ -176,56 +55,56 @@
17655
<FullPath>7) Copy Latest Full backup to Location - Reading BackupFile.sql</FullPath>
17756
</FileNode>
17857
<FileNode Name="7) Copy Latest Full backup to Location - Using BackupHistory.sql">
179-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:TUL1CIPRDB1:True</AssociatedConnectionMoniker>
180-
<AssociatedConnSrvName>TUL1CIPRDB1</AssociatedConnSrvName>
58+
<AssociatedConnectionMoniker />
59+
<AssociatedConnSrvName />
18160
<AssociatedConnUserName />
18261
<FullPath>7) Copy Latest Full backup to Location - Using BackupHistory.sql</FullPath>
18362
</FileNode>
18463
<FileNode Name="8) Fix Orphan Logins for All DBs.sql">
185-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:BAN-1ADWIVEDI-L:True</AssociatedConnectionMoniker>
186-
<AssociatedConnSrvName>BAN-1ADWIVEDI-L</AssociatedConnSrvName>
64+
<AssociatedConnectionMoniker />
65+
<AssociatedConnSrvName />
18766
<AssociatedConnUserName />
18867
<FullPath>8) Fix Orphan Logins for All DBs.sql</FullPath>
18968
</FileNode>
19069
<FileNode Name="Get-LatestBackups.sql">
191-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:tul1cipcnpdb1:True</AssociatedConnectionMoniker>
192-
<AssociatedConnSrvName>tul1cipcnpdb1</AssociatedConnSrvName>
70+
<AssociatedConnectionMoniker />
71+
<AssociatedConnSrvName />
19372
<AssociatedConnUserName />
19473
<FullPath>Get-LatestBackups.sql</FullPath>
19574
</FileNode>
19675
<FileNode Name="Query - Backup History - Path Finding.sql">
197-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:TUL1CIPRDB1:True</AssociatedConnectionMoniker>
198-
<AssociatedConnSrvName>TUL1CIPRDB1</AssociatedConnSrvName>
76+
<AssociatedConnectionMoniker />
77+
<AssociatedConnSrvName />
19978
<AssociatedConnUserName />
20079
<FullPath>Query - Backup History - Path Finding.sql</FullPath>
20180
</FileNode>
20281
<FileNode Name="Query - Backup History.sql">
203-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
204-
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
82+
<AssociatedConnectionMoniker />
83+
<AssociatedConnSrvName />
20584
<AssociatedConnUserName />
20685
<FullPath>Query - Backup History.sql</FullPath>
20786
</FileNode>
20887
<FileNode Name="Query - Restore History.sql">
209-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
210-
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
88+
<AssociatedConnectionMoniker />
89+
<AssociatedConnSrvName />
21190
<AssociatedConnUserName />
21291
<FullPath>Query - Restore History.sql</FullPath>
21392
</FileNode>
21493
<FileNode Name="RevLogin-Script.sql">
215-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
216-
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
94+
<AssociatedConnectionMoniker />
95+
<AssociatedConnSrvName />
21796
<AssociatedConnUserName />
21897
<FullPath>RevLogin-Script.sql</FullPath>
21998
</FileNode>
22099
<FileNode Name="ScriptOut - RESTORE With REPLACE - Multiple Dbs.sql">
221-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
222-
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
100+
<AssociatedConnectionMoniker />
101+
<AssociatedConnSrvName />
223102
<AssociatedConnUserName />
224103
<FullPath>ScriptOut - RESTORE With REPLACE - Multiple Dbs.sql</FullPath>
225104
</FileNode>
226105
<FileNode Name="ScriptOut - RESTORE With REPLACE - Single Db.sql">
227-
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:(local):True</AssociatedConnectionMoniker>
228-
<AssociatedConnSrvName>(local)</AssociatedConnSrvName>
106+
<AssociatedConnectionMoniker />
107+
<AssociatedConnSrvName />
229108
<AssociatedConnUserName />
230109
<FullPath>ScriptOut - RESTORE With REPLACE - Single Db.sql</FullPath>
231110
</FileNode>

0 commit comments

Comments
 (0)