This file contains 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
set nocount, xact_abort on | |
declare | |
@ExclDatabases nvarchar(max) = 'master|msdb|tempdb|ssisdb|model', | |
@Schemas nvarchar(max) = null | |
drop table if exists #AllTabs | |
create table #AllTabs | |
( | |
DbName nvarchar(128), | |
SchemaName nvarchar(128), |