EXEC sp_MSforeachtable
@whereand='and exists(select * from syscolumns where id = o.id and name = ''字段名'')',
@replacechar='*',
@precommand='print ''Updating .....''',
@command1='print ''*'' update * set name = ''需要修改成的值''',
@postcommand= 'print ''Complete Update !'''