Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sp_ineachdb.sql #2272

Merged
merged 1 commit into from Jan 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions sp_ineachdb.sql
Expand Up @@ -15,6 +15,7 @@ ALTER PROCEDURE [dbo].[sp_ineachdb]
@user_only bit = 0,
@name_pattern nvarchar(300) = N'%',
@database_list nvarchar(max) = NULL,
@exclude_pattern nvarchar(300) = NULL,
@exclude_list nvarchar(max) = NULL,
@recovery_model_desc nvarchar(120) = NULL,
@compatibility_level tinyint = NULL,
Expand Down Expand Up @@ -153,6 +154,7 @@ DECLARE @ServerName AS sysname = CONVERT(sysname, SERVERPROPERTY('ServerName'))
WHERE (@system_only = 1 AND id NOT IN (1,2,3,4))
OR (@user_only = 1 AND id IN (1,2,3,4))
OR name NOT LIKE @name_pattern
OR name LIKE @exclude_pattern
OR EXISTS
(
SELECT 1
Expand Down