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
| /* Find column in all databases */ | |
| DECLARE @db_name varchar(100), | |
| @col_name varchar(100), | |
| @sql_statement nvarchar(MAX) | |
| -- column you are looking for | |
| SET @col_name = 'PLANNED_SAMPLE_ID' | |
| -- fill cursor with database names |