GenDev
collate SQL_Latin1_General_CP1_CI_AS
use master select sql = case when name = (select min(name) from GenDev.master.dbo.sysdatabases) then '' else 'union ' end + 'select [Database] = ''' + name + ''', [Object] = o.name ' + 'collate SQL_Latin1_General_CP1_CI_AS, [Type] = o.type collate ' + 'SQL_Latin1_General_CP1_CI_AS, [Column] = c.name collate ' + 'SQL_Latin1_General_CP1_CI_AS from GenDev.[' + name + '].dbo.sysobjects o inner join ' + 'GenDev.[' + name + '].dbo.syscolumns c on o.id = c.id where o.type in (''U'', ''V'') ' + 'and c.name collate SQL_Latin1_General_CP1_CI_AS = @name collate ' + 'SQL_Latin1_General_CP1_CI_AS' from GenDev.master.dbo.sysdatabases where 1=1 and name not in ('master', 'tempdb', 'model', 'msdb')
create procedure MyProcedureName(@name nvarchar(128)) as
order by 1, 2