This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [master] | |
GO | |
IF OBJECT_ID('dbo.sp_foreachdb') IS NULL EXEC ('CREATE PROCEDURE dbo.sp_foreachdb AS RETURN 0') | |
GO | |
ALTER PROCEDURE dbo.sp_foreachdb ( | |
@command NVARCHAR(MAX), | |
@replace_character NCHAR(1) = N'?', | |
@print_dbname BIT = 0, | |
@print_command_only BIT = 0, |