Yes. I am bored again...Same as Spirit suggested but with the addition that only tables are taken into consideration.Views are thrown out.SET NOCOUNT ONDECLARE @WantedColumnName SYSNAME, @OldID VARCHAR(20), @NewID VARCHAR(20)SELECT @WantedColumnName = 'CustID', @OldID = 'ER00544', @NewID = 'PE1343'DECLARE @Exec TABLE ( rowID INT IDENTITY(1, 1) PRIMARY KEY CLUSTERED, SQL NVARCHAR(4000) )INSERT @Exec ( SQL )SELECT N'UPDATE ' + QUOTENAME(c.TABLE_SCHEMA) + N'.' + QUOTENAME(c.TABLE_NAME) + N' SET ' + QUOTENAME(@WantedColumnName) + N' = ' + QUOTENAME(@NewID, '''') + N' WHERE ' + QUOTENAME(@WantedColumnName) + N' = ' + QUOTENAME(@OldID, '''')FROM INFORMATION_SCHEMA.COLUMNS AS cINNER JOIN INFORMATION_SCHEMA.TABLES AS t ON t.TABLE_CATALOG = c.TABLE_CATALOG AND t.TABLE_SCHEMA = c.TABLE_SCHEMA AND t.TABLE_NAME = c.TABLE_NAMEWHERE c.COLUMN_NAME = @WantedColumnName AND t.TABLE_TYPE = 'BASE TABLE'DECLARE @rowID INT, @SQL NVARCHAR(4000)SELECT @rowID = MAX(rowID)FROM @ExecWHILE @rowID > 1 BEGIN SELECT @SQL = SQL FROM @Exec WHERE rowID = @rowID RAISERROR('%s', 10, 1, @SQL) WITH NOWAIT EXEC sp_executesql @SQL SET @rowID = @rowID - 1 END
E 12°55'05.63"N 56°04'39.26"