You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WHERE NOT EXISTS (SELECT [d].[database_name] FROM @IncludeDatabases AS [d] WHERE [sd].[name] COLLATE database_default = REPLACE(REPLACE([d].[database_name], '[', ''), ']', ''))
170
+
WHERE NOT EXISTS (SELECT [d].[database_name]
171
+
FROM @IncludeDatabases AS [d]
172
+
WHERE [sd].[name] COLLATE database_default = REPLACE(REPLACE([d].[database_name], '[', ''), ']', ''))
165
173
AND DATABASEPROPERTYEX([sd].[name], 'UPDATEABILITY') = N'READ_WRITE'
166
174
AND DATABASEPROPERTYEX([sd].[name], 'USERACCESS') = N'MULTI_USER'
167
-
AND DATABASEPROPERTYEX([sd].[name], 'STATUS') = N'ONLINE';
175
+
AND DATABASEPROPERTYEX([sd].[name], 'STATUS') = N'ONLINE'
0 commit comments