Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果行中的数据错误,我在每个表中都有一列将标志值保存为“N”。此标志列通过运行验证脚本进行更新。在运行脚本之前,我需要将这些列设置为“Y”。
EXEC sp_MSforeachtable 'UPDATE ? SET YourColumn = ''Y'''